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

Disassembly:
push 0xffffffffffffffff
push 0x1011bd2f
mov eax, dword fs:[0]
push eax
mov eax, 0x208e4
call fcn.100db4f0
mov eax, dword [0x10156de0]
xor eax, esp
mov dword [esp + 0x208e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10156de0]
xor eax, esp
push eax
lea eax, [esp + 0x208f8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20908]
sub esp, 0x1c
mov dword [esp + 0x60], esp
mov dword [esp + 0x40], eax
mov eax, esp
push 0x1012a9d4
push 0x1012b544
push str.__line:
sub esp, 0x1c
mov dword [esp + 0x5c], esp
mov dword [esp + 0x64], 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 dword [esp + 0x68], edx
mov edi, 1
mov byte [ecx + 4], bl
mov dword [esp + 0x64], eax
call fcn.10007110
lea esi, [esp + 0xe0]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x20928], ebx
push 3
push 0x1012a9fc
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.10007110
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x20934], 1
call fcn.1000a250
add esp, 0xc
push eax
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x20930], 2
call fcn.1000a300
add esp, 0xc
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x2092c], 3
call fcn.1000a300
add esp, 0xc
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x20928], 4
call fcn.1000a300
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
mov byte [esp + 0x20938], 5
push 0x27
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_RomGetInfoAll
mov byte [ecx + 4], bl
call fcn.10007110
mov ecx, edi
lea ebx, [esp + 0xf0]
mov byte [esp + 0x20938], 4
call fcn.100537f0
mov esi, 0x10
cmp dword [esp + 0x60], esi
jb 0x100210d0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d30aa
add esp, 4
xor edi, edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x98], esi
jb 0x100210f8
mov edx, dword [esp + 0x84]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], edi
mov byte [esp + 0x84], 0
cmp dword [esp + 0x7c], esi
jb 0x10021121
mov eax, dword [esp + 0x68]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], edi
mov byte [esp + 0x68], 0
cmp dword [esp + 0x40], esi
jb 0x10021141
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
mov byte [esp + 0x20900], 0xb
cmp dword [esp + 0xb4], esi
jb 0x1002116f
mov edx, dword [esp + 0xa0]
push edx
call fcn.100d30aa
add esp, 4
push 0x1ff
lea eax, [esp + 0x206f9]
push edi
push eax
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], edi
mov byte [esp + 0xac], 0
mov byte [esp + 0x20700], 0
call fcn.100d8b30
mov eax, dword [0x1015c9ec]
add esp, 0xc
cmp eax, edi
je 0x100211cd
push 0x1012ef90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100211cd
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x206f4]
push ecx
push ebx
call eax
jmp 0x100211d1
mov ebx, dword [esp + 0x20]
mov edi, ebx
call fcn.1001c590
xor ebp, ebp
mov esi, eax
mov edi, edx
mov dword [esp + 0xdc], ebp
xor eax, eax
jmp 0x100211f0
mov cl, byte [esp + eax + 0x206f4]
mov byte [esp + eax + 0xe0], cl
inc eax
test cl, cl
jne 0x100211f0
lea edx, [esp + 0x206f4]
push edx
call fcn.100546e0
add esp, 4
test al, al
je 0x10021230
mov dword [esp + 0xdc], 2
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2e4], edi
cmp dword [esp + 0x2090c], ebp
lea edx, [esp + 0x14]
setne al
movzx ecx, al
push ecx
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xcafc]
push eax
lea ecx, [esp + 0xe8]
push ecx
push edx
call dword [sym.imp.FlashtoollibEx.dll_get_revised_scatter_partitions]
mov esi, eax
cmp esi, ebp
je 0x10021283
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0x20904], 0xffffffff
call fcn.10053a90
mov eax, esi
jmp 0x10021405
cmp dword [esp + 0x14], ebp
jbe 0x1002134c
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xcb34]
add edi, 0x50
jmp 0x100212a0
push 0x3f
lea ecx, [esi - 0x40]
push ecx
lea edx, [edi - 0x50]
push edx
call fcn.100d3340
add esp, 0xc
push 0xff
lea eax, [edi + 0x10]
push esi
push eax
call fcn.100d3340
mov ecx, dword [esi + 0x200]
mov edx, dword [esi + 0x204]
mov eax, dword [esi + 0x208]
mov dword [edi], ecx
mov ecx, dword [esi + 0x20c]
mov dword [edi + 4], edx
mov edx, dword [esi + 0x214]
mov dword [edi + 0x138], eax
mov eax, dword [esi + 0x218]
mov dword [edi + 0x13c], ecx
mov ecx, dword [esi + 0x220]
mov dword [edi + 0x130], edx
mov edx, dword [esi + 0x21c]
mov dword [edi + 0x12c], eax
mov eax, dword [esi + 0x224]
mov dword [edi + 0x120], ecx
mov ecx, dword [esi + 0x234]
mov dword [edi + 0x124], edx
mov dword [edi + 0x128], eax
mov dword [edi + 0x11c], ecx
inc ebp
add esp, 0xc
add esi, 0x278
add edi, 0x190
cmp ebp, dword [esp + 0x14]
jb 0x100212a0
push 0x80
lea edx, [esp + 0x2f8]
push edx
push ebx
call sym.Flashtoollib.dll_DL_Rom_GetInfoAll
mov esi, eax
test esi, esi
jne 0x10021264
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jbe 0x100213eb
mov edi, dword [esp + 0x1c]
xor ebp, ebp
lea esi, [esp + 0x2f4]
mov edi, edi
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021385
sub eax, edx
push eax
push esi
push edi
call fcn.100d31eb
add esp, 0xc
test eax, eax
jne 0x100213ba
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100213a2
sub eax, edx
push eax
push esi
push edi
call fcn.100d31eb
add esp, 0xc
test eax, eax
je 0x100213cb
inc ebp
add esi, 0x190
cmp ebp, 0x80
jb 0x10021380
jmp 0x100213de
imul ebp, ebp, 0x190
mov ecx, dword [esp + ebp + 0x464]
mov dword [edi + 0x170], ecx
inc ebx
add edi, 0x190
cmp ebx, dword [esp + 0x14]
jb 0x10021375
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0x20904], 0xffffffff
call fcn.10053a90
xor eax, eax
mov ecx, dword [esp + 0x208f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208e0]
xor ecx, esp
call fcn.100d21d1
add esp, 0x208f0
ret 8