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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x10156de0]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
push edi
sub esp, 0x1c
mov dword [esp + 0x28], esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, esp
push 0x1012a9d4
push 0x1012db4c
push str.__line:
sub esp, 0x1c
mov dword [esp + 0x78], ecx
mov ecx, esp
mov dword [esp + 0x50], esp
xor ebx, ebx
push 0xd
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov dword [esp + 0x84], edx
mov byte [ecx + 4], bl
mov dword [esp + 0x60], eax
call fcn.10007110
lea esi, [esp + 0xf4]
call fcn.1003f5c0
add esp, 0x1c
push 3
push 0x1012a9fc
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.10007110
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.1000a250
add esp, 0xc
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.1000a300
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.1000a300
add esp, 0xc
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.1000a300
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x1012db50
mov byte [ecx + 4], bl
call fcn.10007110
lea ecx, [edi - 0xe]
lea ebx, [esp + 0x208]
call fcn.100537f0
mov esi, 0x10
cmp dword [esp + 0x98], esi
jb 0x100411bb
mov eax, dword [esp + 0x84]
push eax
call fcn.100d30aa
add esp, 4
xor ebx, ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x60], esi
jb 0x100411e5
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x10041204
mov edx, dword [esp + 0x68]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x30], esi
jb 0x10041223
mov eax, dword [esp + 0x1c]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0xc8], esi
jb 0x10041248
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.100d30aa
add esp, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
mov dword [esp + 0x44], edx
call fcn.1005ab30
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x10]
push edx
mov esi, eax
call fcn.1000a3d0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x10041289
push eax
call fcn.10072220
add esp, 4
cmp dword [esp + 0x10], ebx
je 0x10041521
lea edx, [ebp + 0x20]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], 0x1003eb50
mov dword [esp + 0xac], 0x1003eb60
jmp 0x100412c0
push 0x1012a9d4
push 0x1012db64
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007110
lea esi, [esp + 0x11c]
call fcn.1003f5c0
add esp, 0x1c
push 3
push 0x1012a9fc
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.10007110
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.1000a250
add esp, 0xc
push eax
lea edx, [esp + 0xdc]
push edx
call fcn.1000a300
add esp, 0xc
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1000a300
add esp, 0xc
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.1000a300
add esp, 0xc
push str.bCheckScatter:__d
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0x14], eax
call fcn.10009db0
lea ecx, [esp + 0xa4]
push ecx
call fcn.10011db0
add esp, 4
mov edi, eax
call fcn.1005ab30
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.1000a480
mov esi, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x64]
mov ecx, edi
add esi, 4
call fcn.10009eb0
mov ecx, dword [eax + 0x14]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x100413c8
mov eax, dword [eax + 4]
jmp 0x100413cb
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.10008750
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x100413e5
mov eax, dword [eax + 4]
jmp 0x100413e8
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.10008750
lea ecx, [esp + 0xe8]
call fcn.10006cd0
cmp dword [esp + 0x7c], edi
jb 0x10041410
mov ecx, dword [esp + 0x68]
push ecx
call fcn.100d30aa
add esp, 4
lea edi, [esp + 0x110]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.10003ab0
mov esi, 0x10
cmp dword [esp + 0x60], esi
jb 0x10041444
mov edx, dword [esp + 0x4c]
push edx
call fcn.100d30aa
add esp, 4
mov edi, 0xf
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x98], esi
jb 0x1004146e
mov eax, dword [esp + 0x84]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xe4], esi
jb 0x1004149c
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0xc8], esi
jb 0x100414ca
mov edx, dword [esp + 0xb4]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0x30], esi
jb 0x100414f2
mov eax, dword [esp + 0x1c]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x10c], esi
jb 0x10041517
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.100d30aa
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x100412c0
mov eax, dword [ebp + 0x20]
mov dx, word [ebp + 8]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
mov word [esp + 0xa8], dx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb8], ebx
call sym.Flashtoollib.dll_FlashTool_Connect_Ex
lea ecx, [esp + 0x1d0]
push ecx
mov esi, eax
call fcn.10053a90
mov ecx, dword [esp + 0x1f4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100d21d1
mov esp, ebp
pop ebp
ret 0x1c