Function at 0x1001db90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100fa29c
mov eax, dword fs:[0]
push eax
sub esp, 0xfb0
mov eax, dword [0x1012fdf0]
xor eax, esp
mov dword [esp + 0xfa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0xfc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfd4]
mov edi, dword [esp + 0xfd8]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 2
mov dword [esp + 0x28], ecx
mov ebp, 0xf
push 0x101085f8
lea ecx, [esp + 0xa4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edx
lea esi, [ebx + 1]
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.10005cd0
push str.._adaptor_cflashtool_api.cpp
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov dword [esp + 0xfd8], ebx
call fcn.10007a10
add esp, 0xc
push str.__line:
push eax
lea edx, [esp + 0x100]
push edx
mov byte [esp + 0xfd8], 1
call fcn.10007a10
add esp, 0xc
push 0x10109254
push eax
lea eax, [esp + 0xe4]
push eax
mov byte [esp + 0xfd8], 2
call fcn.10007a10
sub esp, 0x10
mov ecx, esp
mov byte [esp + 0xfe8], 3
mov dword [esp + 0x4c], esp
push 0x101085d0
push eax
push ecx
call fcn.10007a10
sub esp, 0x10
mov byte [esp + 0x1004], 4
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x29
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_Connect_BROM_Ex
mov byte [ecx + 4], bl
call fcn.10005cd0
mov ecx, esi
lea edx, [esp + 0x228]
mov byte [esp + 0x1004], 3
call fcn.1003be80
mov esi, 0x10
cmp dword [esp + 0xf4], esi
jb 0x1001dcf3
mov edx, dword [esp + 0xe0]
push edx
call fcn.100b3111
add esp, 4
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
cmp dword [esp + 0x110], esi
jb 0x1001dd21
mov eax, dword [esp + 0xfc]
push eax
call fcn.100b3111
add esp, 4
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
cmp dword [esp + 0xd8], esi
jb 0x1001dd4f
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.100b3111
add esp, 4
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov byte [esp + 0xfcc], 9
cmp dword [esp + 0xb4], esi
jb 0x1001dd85
mov edx, dword [esp + 0xa0]
push edx
call fcn.100b3111
add esp, 4
push 0x103
lea eax, [esp + 0xeb9]
push ebx
push eax
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov byte [esp + 0xec0], bl
call fcn.100b8cd0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
add esp, 0xc
sub eax, ebx
mov dword [esp + 0x28], ebx
je 0x1001decf
sub eax, 1
je 0x1001dded
sub eax, 1
jne 0x1001dee8
mov ecx, dword [ecx + 4]
push ecx
push 0x1010928c
lea edx, [esp + 0xebc]
push edx
jmp 0x1001dee0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 4
mov dword [esp + 0x20], eax
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov dword [eax], ebx
mov byte [esp + 0xfcc], 0xa
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001de3a
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1001de94
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0xfcc], 0xb
mov ecx, dword [eax + 4]
add ecx, 4
push str.not_support_handle_type_port
mov ebx, 0x1c
call fcn.10008730
lea ecx, [esp + 0x48]
mov byte [esp + 0xfcc], 0xa
call fcn.10005040
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1001de42
xor ebx, ebx
mov byte [esp + 0xfcc], 9
cmp eax, ebx
je 0x1001dead
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + 0xfd0], 0xffffffff
call fcn.1003c130
mov eax, 0xc0030007
jmp 0x1001e7f6
mov edx, dword [ecx + 4]
push edx
push str.COM_d
lea eax, [esp + 0xebc]
push eax
call fcn.100b29c0
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esp + 0xfdc], ebx
je 0x1001df21
mov eax, dword [0x10135b94]
cmp eax, ebx
je 0x1001df21
push 0x1010c528
push eax
call ebp
cmp eax, ebx
je 0x1001df21
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
push edi
lea ecx, [esp + 0xec0]
push ecx
call eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.FlashtoollibEx.dll_flashtool_create_session_with_handle]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x1001df58
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + 0xfd0], 0xffffffff
call fcn.1003c130
mov eax, 0xc001000a
jmp 0x1001e7f6
mov ecx, dword [edi + 0x4c]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x44]
mov esi, dword [edi + 0x3c]
push 0x42c
mov dword [esp + 0x78], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x48]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x50]
lea ecx, [esp + 0x64c]
push ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x1001db70
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x650], ebx
call fcn.100b8cd0
mov eax, dword [0x10135b94]
add esp, 0xc
cmp eax, ebx
je 0x1001dfec
push 0x1010c390
push eax
call ebp
cmp eax, ebx
je 0x1001dfec
lea edx, [esp + 0x644]
push edx
push esi
call eax
mov ebp, eax
jmp 0x1001dff1
mov ebp, 0xc001000c
push 0x214
lea eax, [esp + 0x430]
push ebx
push eax
call fcn.100b8cd0
add esp, 0xc
cmp ebp, ebx
jne 0x1001e09b
mov eax, dword [esp + 0x648]
mov dword [esp + 0x42c], eax
cmp eax, ebx
je 0x1001e049
cmp eax, 2
je 0x1001e049
cmp eax, 1
jne 0x1001e09b
mov ecx, dword [esp + 0x84c]
mov edx, dword [esp + 0x850]
mov dword [esp + 0x638], ecx
mov dword [esp + 0x63c], edx
jmp 0x1001e09b
xor eax, eax
jmp 0x1001e050
mov cl, byte [esp + eax + 0x64c]
mov byte [esp + eax + 0x430], cl
inc eax
cmp cl, bl
jne 0x1001e050
lea eax, [esp + 0x430]
push eax
call fcn.1003ce20
add esp, 4
test al, al
je 0x1001e09b
mov edi, esi
mov dword [esp + 0x42c], 2
call fcn.1001a3b0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x630], eax
mov dword [esp + 0x634], edx
mov edi, dword [edi + 0x40]
push 0x42c
lea ecx, [esp + 0xa7c]
push ebx
push ecx
mov dword [esp + 0xa80], ebx
call fcn.100b8cd0
mov eax, dword [0x10135b94]
add esp, 0xc
cmp eax, ebx
je 0x1001e0e3
push 0x1010c40c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001e0e3
lea edx, [esp + 0xa74]
push edx
push edi
call eax
mov esi, eax
jmp 0x1001e0e8
mov esi, 0xc001000c
push 0x214
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.100b8cd0
add esp, 0xc
cmp esi, ebx
jne 0x1001e195
mov eax, dword [esp + 0xa78]
mov dword [esp + 0x214], eax
cmp eax, ebx
je 0x1001e140
cmp eax, 2
je 0x1001e140
cmp eax, 1
jne 0x1001e195
mov ecx, dword [esp + 0xc7c]
mov edx, dword [esp + 0xc80]
mov dword [esp + 0x420], ecx
mov dword [esp + 0x424], edx
jmp 0x1001e195
xor eax, eax
jmp 0x1001e150
mov cl, byte [esp + eax + 0xa7c]
mov byte [esp + eax + 0x218], cl
inc eax
cmp cl, bl
jne 0x1001e150
lea eax, [esp + 0x218]
push eax
call fcn.1003ce20
add esp, 4
test al, al
je 0x1001e195
mov dword [esp + 0x214], 2
call fcn.1001a430
mov dword [esp + 0x418], eax
mov dword [esp + 0x41c], edx
cmp dword [esp + 0xfdc], ebx
je 0x1001e1d8
neg esi
sbb esi, esi
lea edx, [esp + 0x214]
not esi
and esi, edx
mov edx, dword [esp + 0x1c]
neg ebp
sbb ebp, ebp
lea ecx, [esp + 0x60]
push ecx
push esi
lea eax, [esp + 0x434]
not ebp
and ebp, eax
push ebp
lea ecx, [esp + 0xec0]
push ecx
push edx
call dword [sym.imp.FlashtoollibEx.dll_flashtool_connect_brom]
jmp 0x1001e210
neg esi
sbb esi, esi
lea ecx, [esp + 0x214]
not esi
and esi, ecx
mov ecx, dword [esp + 0x1c]
neg ebp
sbb ebp, ebp
lea eax, [esp + 0x60]
push eax
push esi
lea edx, [esp + 0x434]
not ebp
and ebp, edx
push ebp
lea eax, [esp + 0xec0]
push eax
push ecx
call dword [sym.imp.FlashtoollibEx.dll__flashtool_connect_brom_with_handle_20]
xor edx, edx
mov dword [esp + 0x28], eax
mov word [esp + 0x3c], dx
mov dword [esp + 0x3e], ebx
mov dword [esp + 0x42], ebx
mov word [esp + 0x46], bx
mov dword [esp + 0x38], ebx
mov byte [esp + 0xea8], bl
mov dword [esp + 0xea9], ebx
mov dword [esp + 0xead], ebx
mov byte [esp + 0xeb1], bl
cmp eax, ebx
jne 0x1001e60f
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
lea eax, [esp + 0xbc]
push eax
call fcn.10029990
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x1001e3da
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], edx
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [eax], ebx
mov byte [esp + 0xfcc], 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1001e2bc
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001e3c5
lea edx, [esp + 0x28]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0x1002d370
mov dword [esp + 0x50], 0x1002d380
push str.Get_support_Modem_fail:_0x_x
lea eax, [esp + 0x134]
push eax
call fcn.10007580
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0xfd0], 0xd
call fcn.1000f490
add esp, 4
lea edx, [esp + 0x80]
mov ecx, eax
call fcn.10007680
mov esi, eax
mov byte [esp + 0xfcc], 0xe
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0xfcc], 0xf
mov ecx, dword [eax + 4]
mov ebx, dword [esi + 0x14]
add ecx, 4
cmp dword [esi + 0x18], 0x10
jb 0x1001e355
mov esi, dword [esi + 4]
jmp 0x1001e358
add esi, 4
push esi
call fcn.10008730
lea ecx, [esp + 0x54]
mov byte [esp + 0xfcc], 0xe
call fcn.10005040
cmp dword [esp + 0x98], 0x10
jb 0x1001e389
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0x130]
xor ebx, ebx
push edx
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0xfd0], 0xc
call fcn.100031a0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x1001e2e0
mov byte [esp + 0xfcc], 9
cmp eax, ebx
je 0x1001e3da
push eax
call fcn.1005c230
add esp, 4
mov edi, 1
cmp dword [esp + 0xfdc], ebx
je 0x1001e63d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xb8]
push eax
push 0xc
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push edi
push edx
call dword [sym.imp.FlashtoollibEx.dll_flashtool_device_control]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x1001e60f
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
lea eax, [esp + 0x38]
push eax
push edx
call sym.Flashtoollib.dll_FlashTool_GetDLHandle
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x1001e60f
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xea8]
push eax
push ecx
call sym.Flashtoollib.dll_DL_Get_PlatformName
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x1001e60f
lea edx, [esp + 0xea8]
push edx
lea ecx, [esp + 0x118]
call fcn.10004800
push str.MT6757D
mov byte [esp + 0xfd0], 0x10
push eax
mov dword [esp + 0x1c], edi
call fcn.10006fa0
add esp, 8
test al, al
jne 0x1001e4bf
lea eax, [esp + 0xea8]
push eax
lea ecx, [esp + 0x84]
call fcn.10004800
push str.mt6757d
mov dword [esp + 0xfd0], 0x11
push eax
mov dword [esp + 0x1c], 3
call fcn.10006fa0
add esp, 8
mov byte [esp + 0x1b], bl
test al, al
je 0x1001e4c4
mov byte [esp + 0x1b], 1
test byte [esp + 0x14], 2
je 0x1001e4dc
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x80]
call fcn.10004870
mov esi, 9
mov dword [esp + 0xfcc], esi
test byte [esp + 0x14], 1
je 0x1001e500
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x114]
call fcn.10004870
cmp byte [esp + 0x1b], bl
je 0x1001e50a
mov dword [esp + 0x44], edi
lea ecx, [esp + 0xea8]
push ecx
lea ecx, [esp + 0x84]
call fcn.10004800
push str.MT6750
mov byte [esp + 0xfd0], 0x12
or dword [esp + 0x18], 4
push eax
call fcn.10006fa0
add esp, 8
test al, al
jne 0x1001e577
lea edx, [esp + 0xea8]
push edx
lea ecx, [esp + 0x118]
call fcn.10004800
push str.mt6750
mov dword [esp + 0xfd0], 0x13
or dword [esp + 0x18], 8
push eax
call fcn.10006fa0
add esp, 8
mov byte [esp + 0x1b], bl
test al, al
je 0x1001e57c
mov byte [esp + 0x1b], 1
test byte [esp + 0x14], 8
je 0x1001e594
and dword [esp + 0x14], 0xfffffff7
lea ecx, [esp + 0x114]
call fcn.10004870
mov dword [esp + 0xfcc], esi
test byte [esp + 0x14], 4
je 0x1001e5ae
lea ecx, [esp + 0x80]
call fcn.10004870
cmp byte [esp + 0x1b], bl
je 0x1001e5dc
mov eax, dword [str.MT6755]
mov cx, word [0x101087cc]
mov dl, byte [0x101087ce]
mov dword [esp + 0xea8], eax
mov word [esp + 0xeac], cx
mov byte [esp + 0xeae], dl
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xea8]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call dword [sym.imp.FlashtoollibEx.dll__flashtool_is_chiptype_match_16]
test al, al
jne 0x1001e63d
mov dword [esp + 0x28], 0xc003000f
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.FlashtoollibEx.dll_flashtool_destroy_session]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x1f0]
push eax
mov dword [esp + 0xfd0], 0xffffffff
call fcn.1003c130
mov eax, esi
jmp 0x1001e7f6
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x24], ebx
je 0x1001e720
lea edx, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov byte [esp + 0xfcc], 0x14
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1001e693
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001e6ed
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0xfcc], 0x15
mov ecx, dword [eax + 4]
add ecx, 4
push str.callback_in_brom_stage
mov ebx, 0x16
call fcn.10008730
lea ecx, [esp + 0x54]
mov byte [esp + 0xfcc], 0x14
call fcn.10005040
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1001e69b
xor ebx, ebx
mov byte [esp + 0xfcc], 9
cmp eax, ebx
je 0x1001e706
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x24]
push ebx
push ecx
call edx
mov edi, 1
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov byte [esp + 0xfcc], 0x16
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1001e769
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001e7c3
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0xfcc], 0x17
mov ecx, dword [eax + 4]
add ecx, 4
push str.connect_brom_ex_OK
mov ebx, 0x12
call fcn.10008730
lea ecx, [esp + 0x54]
mov byte [esp + 0xfcc], 0x16
call fcn.10005040
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1001e771
xor ebx, ebx
mov byte [esp + 0xfcc], 9
cmp eax, ebx
je 0x1001e7dc
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + 0xfd0], 0xffffffff
call fcn.1003c130
xor eax, eax
mov ecx, dword [esp + 0xfc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfa8]
xor ecx, esp
call fcn.100b2691
add esp, 0xfbc
ret 0xc