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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x10159df0]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
sub esp, 0x1c
mov dword [esp + 0x30], esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x48], eax
mov eax, esp
push 0x1012d9f4
push 0x10130e24
push str.__line:
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x1c]
sub esp, 0x1c
mov dword [esp + 0x64], ecx
mov ecx, esp
mov dword [esp + 0x58], 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 + 0xc8], edx
mov byte [ecx + 4], bl
mov dword [esp + 0x68], eax
call fcn.10007180
lea esi, [esp + 0x108]
call fcn.10041270
add esp, 0x1c
push 3
push 0x1012da1c
lea ecx, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.10007180
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0xac]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.1000a390
add esp, 0xc
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.1000a390
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x14
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x10130e28
mov byte [ecx + 4], bl
call fcn.10007180
lea ecx, [edi - 0xe]
lea ebx, [esp + 0x210]
call fcn.10055ee0
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x10043a88
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.100d541a
add esp, 4
xor ebx, ebx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x98], esi
jb 0x10043ab8
mov edx, dword [esp + 0x84]
push edx
call fcn.100d541a
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x78], esi
jb 0x10043ae0
mov eax, dword [esp + 0x64]
push eax
call fcn.100d541a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x50], esi
jb 0x10043aff
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100d541a
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0xdc], esi
jb 0x10043b24
mov edx, dword [esp + 0xc8]
push edx
call fcn.100d541a
add esp, 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], eax
call fcn.1005ce90
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10043b65
push eax
call fcn.100745e0
add esp, 4
cmp dword [esp + 0x1c], ebx
je 0x10043c3d
lea edx, [ebp + 0x20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0x10040570
mov dword [esp + 0x5c], 0x10040580
push str.bCheckScatter:__d
lea eax, [esp + 0x11c]
push eax
call fcn.10009e40
lea ecx, [esp + 0x54]
push ecx
call fcn.10011e90
add esp, 4
mov edi, eax
call fcn.1005ce90
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x60]
mov ecx, edi
add esi, 4
call fcn.10009f40
mov ecx, dword [eax + 0x14]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x10043be7
mov eax, dword [eax + 4]
jmp 0x10043bea
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x78], edi
jb 0x10043c12
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d541a
add esp, 4
lea edi, [esp + 0x118]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.10003aa0
cmp dword [esp + 0x1c], ebx
jne 0x10043b86
mov edi, 0xf
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call sym.Flashtoollib.dll_FlashTool_Connect_BROM_Ex
mov esi, eax
cmp esi, ebx
jne 0x10043fd0
mov eax, dword [0x1015f9ec]
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x10043ca2
push 0x101323bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10043ca2
lea ecx, [esp + 0x30]
push ecx
push esi
call eax
mov esi, eax
cmp esi, ebx
je 0x10043cb4
lea edx, [esp + 0x1d8]
push edx
jmp 0x10043fd8
lea edx, [esp + 0x1d8]
mov esi, 0xc001000c
push edx
jmp 0x10043fd8
mov eax, dword [0x1015f9ec]
mov esi, dword [esp + 0x30]
cmp eax, ebx
je 0x10043cd6
push 0x101322b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10043cd6
push esi
call eax
jmp 0x10043cd8
xor eax, eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call fcn.1005ce90
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10043d1d
push eax
call fcn.100745e0
add esp, 4
cmp dword [esp + 0x10], ebx
je 0x10043fb0
lea edx, [esp + 0x34]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0x10040570
mov dword [esp + 0x5c], 0x10040580
nop
push 0x1012d9f4
push 0x10130e40
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], 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.10007180
lea esi, [esp + 0x124]
call fcn.10041270
add esp, 0x1c
push 3
push 0x1012da1c
lea ecx, [esp + 0x4c]
mov esi, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.10007180
push esi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0xf0]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.1000a390
add esp, 0xc
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.1000a390
add esp, 0xc
push str.bRealCheckScatter:__d
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x20], eax
call fcn.10009e40
lea ecx, [esp + 0x54]
push ecx
call fcn.10011e90
add esp, 4
mov edi, eax
call fcn.1005ce90
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x60]
mov ecx, edi
add esi, 4
call fcn.10009f40
mov ecx, dword [eax + 0x14]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x10043e48
mov eax, dword [eax + 4]
jmp 0x10043e4b
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.100087d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x10043e65
mov eax, dword [eax + 4]
jmp 0x10043e68
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x78], edi
jb 0x10043e90
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d541a
add esp, 4
lea edi, [esp + 0x118]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.10003aa0
mov esi, 0x10
cmp dword [esp + 0x98], esi
jb 0x10043eca
mov edx, dword [esp + 0x84]
push edx
call fcn.100d541a
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x10043efd
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d541a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0xf8], esi
jb 0x10043f2b
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.100d541a
add esp, 4
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
cmp dword [esp + 0xdc], esi
jb 0x10043f59
mov edx, dword [esp + 0xc8]
push edx
call fcn.100d541a
add esp, 4
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
cmp dword [esp + 0x50], esi
jb 0x10043f81
mov eax, dword [esp + 0x3c]
push eax
call fcn.100d541a
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x114], esi
jb 0x10043fa6
mov ecx, dword [esp + 0x100]
push ecx
call fcn.100d541a
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x10043d40
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call sym.Flashtoollib.dll_FlashTool_Connect_Download_DA
mov esi, eax
lea ecx, [esp + 0x1d8]
push ecx
call fcn.10056180
mov ecx, dword [esp + 0x1fc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4541
mov esp, ebp
pop ebp
ret 0x1c