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

Disassembly:
push 0xffffffffffffffff
push 0x1011c6ec
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x10156de0]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10156de0]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xec]
sub esp, 0x1c
mov dword [esp + 0x5c], esp
mov dword [esp + 0x3c], eax
mov eax, esp
push 0x1012a9d4
push 0x1012b12c
push str.__line:
sub esp, 0x1c
mov dword [esp + 0x5c], esp
mov dword [esp + 0x60], ecx
mov ecx, esp
xor ebx, ebx
push 0x1c
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov edi, 1
mov byte [ecx + 4], bl
mov dword [esp + 0x64], eax
call fcn.10007110
lea esi, [esp + 0xc0]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x10c], ebx
push 3
push 0x1012a9fc
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.10007110
push esi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x118], 1
call fcn.1000a250
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x114], 2
call fcn.1000a300
add esp, 0xc
push eax
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0x110], 3
call fcn.1000a300
add esp, 0xc
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x10c], 4
call fcn.1000a300
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
mov byte [esp + 0x11c], 5
push 0x27
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_SetupUSBDL_EX
mov byte [ecx + 4], bl
call fcn.10007110
mov ecx, edi
lea ebx, [esp + 0xec]
mov byte [esp + 0x11c], 4
call fcn.100537f0
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jb 0x1001b8ee
mov eax, dword [esp + 0x9c]
push eax
call fcn.100d30aa
add esp, 4
xor ebx, ebx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x5c], esi
jb 0x1001b918
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1001b937
mov edx, dword [esp + 0x64]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x3c], esi
jb 0x1001b956
mov eax, dword [esp + 0x28]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xe4], 0xffffffff
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x94], esi
jb 0x1001b986
mov ecx, dword [esp + 0x80]
push ecx
call fcn.100d30aa
add esp, 4
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 2]
movzx eax, word [eax + 4]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ecx]
push eax
push edx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call dword [sym.imp.FlashtoollibEx.dll_flashtool_tell_device_change_com]
mov esi, eax
lea eax, [esp + 0xb4]
push eax
call fcn.10053a90
mov eax, esi
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.100d21d1
add esp, 0xd4
ret 4