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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x1012fdf0]
xor eax, esp
mov dword [esp + 0x198], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
push 2
mov dword [esp + 0x30], ecx
xor ebx, ebx
push 0x101085f8
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.10005cd0
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x28], esp
push 0x101085d0
push 0x1010b238
push str.__line:
push str.._api_api.cpp
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x70]
push eax
lea esi, [ebx + 1]
call fcn.10007a10
add esp, 0xc
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.10007a10
add esp, 0xc
push eax
lea edx, [esp + 0xcc]
push edx
call fcn.10007a10
add esp, 0xc
push eax
push edi
call fcn.10007a10
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x14
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x1010b23c
mov byte [ecx + 4], bl
call fcn.10005cd0
mov ecx, esi
lea edx, [esp + 0x1b8]
call fcn.1003be80
mov edi, 0x10
cmp dword [esp + 0xbc], edi
jb 0x1002fe54
mov eax, dword [esp + 0xa8]
push eax
call fcn.100b3111
add esp, 4
mov esi, 0xf
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0xa0], edi
jb 0x1002fe87
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.100b3111
add esp, 4
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x58], edi
jb 0x1002feaf
mov edx, dword [esp + 0x44]
push edx
call fcn.100b3111
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x84], edi
jb 0x1002fed1
mov eax, dword [esp + 0x70]
push eax
call fcn.100b3111
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], ecx
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.10007ae0
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1002ff12
push eax
call fcn.1005c230
add esp, 4
cmp dword [esp + 0x1c], ebx
je 0x1002ffdc
lea eax, [ebp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x1002d4d0
mov dword [esp + 0x3c], 0x1002d4e0
push str.bCheckScatter:__d
lea ecx, [esp + 0xc4]
push ecx
call fcn.10007580
lea edx, [esp + 0x34]
push edx
call fcn.1000f490
add esp, 4
mov ebx, eax
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.10007b90
mov esi, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x40]
mov ecx, ebx
add esi, 4
call fcn.10007680
mov ebx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x1002ff8c
mov eax, dword [eax + 4]
jmp 0x1002ff8f
add eax, 4
push eax
mov ecx, esi
call fcn.10008730
lea ecx, [esp + 0x60]
call fcn.10005040
cmp dword [esp + 0x58], edi
jb 0x1002ffb3
mov eax, dword [esp + 0x44]
push eax
call fcn.100b3111
add esp, 4
lea ecx, [esp + 0xc0]
xor ebx, ebx
push ecx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.100031a0
cmp dword [esp + 0x1c], ebx
jne 0x1002ff33
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push eax
push edi
push ecx
push edx
call sym.Flashtoollib.dll_FlashTool_Connect_BROM_Ex
mov esi, eax
cmp esi, ebx
je 0x1003000c
lea eax, [esp + 0x180]
push eax
jmp 0x100301a6
mov eax, dword [0x10135b94]
mov esi, dword [edi]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x1003005d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010c590
push eax
call edi
cmp eax, ebx
je 0x1003005d
lea ecx, [esp + 0x24]
push ecx
push esi
call eax
mov esi, eax
cmp esi, ebx
jne 0x1003019e
mov eax, dword [0x10135b94]
mov esi, dword [esp + 0x24]
cmp eax, ebx
je 0x10030067
push 0x1010c4a4
push eax
call edi
cmp eax, ebx
je 0x10030067
push esi
call eax
jmp 0x10030069
mov esi, 0xc001000c
jmp 0x1003019e
xor eax, eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100300ae
push eax
call fcn.1005c230
add esp, 4
cmp dword [esp + 0x10], ebx
je 0x1003017e
lea edx, [esp + 0x30]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x1002d4d0
mov dword [esp + 0x3c], 0x1002d4e0
push str.bRealCheckScatter:__d
lea eax, [esp + 0xc4]
push eax
call fcn.10007580
lea ecx, [esp + 0x34]
push ecx
call fcn.1000f490
add esp, 4
mov ebx, eax
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.10007b90
mov esi, dword [eax + 4]
add esp, 0xc
lea edx, [esp + 0x40]
mov ecx, ebx
add esi, 4
call fcn.10007680
mov ebx, dword [eax + 0x14]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x1003012e
mov eax, dword [eax + 4]
jmp 0x10030131
add eax, 4
push eax
mov ecx, esi
call fcn.10008730
lea ecx, [esp + 0x60]
call fcn.10005040
cmp dword [esp + 0x58], edi
jb 0x10030155
mov ecx, dword [esp + 0x44]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0xc0]
xor ebx, ebx
push edx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.100031a0
cmp dword [esp + 0x10], ebx
jne 0x100300d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call sym.Flashtoollib.dll_FlashTool_Connect_Download_DA
mov esi, eax
lea edx, [esp + 0x180]
push edx
call fcn.1003c130
mov ecx, dword [esp + 0x1a4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100b2691
mov esp, ebp
pop ebp
ret 0x1c