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

Disassembly:
push 0xffffffffffffffff
push 0x1011cfcf
mov eax, dword fs:[0]
push eax
mov eax, 0x208e4
call fcn.100dc600
mov eax, dword [0x10157de0]
xor eax, esp
mov dword [esp + 0x208e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
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 0x1012b9e4
push 0x1012c554
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.10007180
lea esi, [esp + 0xe0]
call fcn.1001a7c0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x20928], ebx
push 3
push 0x1012ba0c
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.10007180
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x20934], 1
call fcn.1000a2c0
add esp, 0xc
push eax
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x20930], 2
call fcn.1000a370
add esp, 0xc
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x2092c], 3
call fcn.1000a370
add esp, 0xc
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x20928], 4
call fcn.1000a370
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.10007180
mov ecx, edi
lea ebx, [esp + 0xf0]
mov byte [esp + 0x20938], 4
call fcn.10054c60
mov esi, 0x10
cmp dword [esp + 0x60], esi
jb 0x100210e0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d41ba
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 0x10021108
mov edx, dword [esp + 0x84]
push edx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], edi
mov byte [esp + 0x84], 0
cmp dword [esp + 0x7c], esi
jb 0x10021131
mov eax, dword [esp + 0x68]
push eax
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], edi
mov byte [esp + 0x68], 0
cmp dword [esp + 0x40], esi
jb 0x10021151
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100d41ba
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 0x1002117f
mov edx, dword [esp + 0xa0]
push edx
call fcn.100d41ba
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.100d9c40
mov eax, dword [0x1015d9ec]
add esp, 0xc
cmp eax, edi
je 0x100211dd
push 0x101300fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100211dd
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x206f4]
push ecx
push ebx
call eax
jmp 0x100211e1
mov ebx, dword [esp + 0x20]
mov edi, ebx
call fcn.1001c5a0
mov esi, eax
xor eax, eax
mov ebp, edx
mov dword [esp + 0xdc], eax
jmp 0x10021200
mov cl, byte [esp + eax + 0x206f4]
mov byte [esp + eax + 0xe0], cl
inc eax
test cl, cl
jne 0x10021200
lea edi, [esp + 0x206f4]
call fcn.10055b50
test al, al
je 0x1002123c
mov dword [esp + 0xdc], 2
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2e4], ebp
cmp dword [esp + 0x2090c], 0
lea ecx, [esp + 0x14]
setne dl
movzx eax, dl
push eax
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xcafc]
push edx
lea eax, [esp + 0xe8]
push eax
push ecx
call dword [sym.imp.FlashtoollibEx.dll_get_revised_scatter_partitions]
mov esi, eax
test esi, esi
je 0x10021290
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0x20904], 0xffffffff
call fcn.10054f00
mov eax, esi
jmp 0x10021415
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jbe 0x1002135c
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xcb34]
add edi, 0x50
lea ebx, [ebx]
push 0x3f
lea eax, [esi - 0x40]
push eax
lea ecx, [edi - 0x50]
push ecx
call fcn.100d4450
add esp, 0xc
push 0xff
lea edx, [edi + 0x10]
push esi
push edx
call fcn.100d4450
mov eax, dword [esi + 0x200]
mov ecx, dword [esi + 0x204]
mov edx, dword [esi + 0x208]
mov dword [edi], eax
mov eax, dword [esi + 0x20c]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x214]
mov dword [edi + 0x138], edx
mov edx, dword [esi + 0x218]
mov dword [edi + 0x13c], eax
mov eax, dword [esi + 0x220]
mov dword [edi + 0x130], ecx
mov ecx, dword [esi + 0x21c]
mov dword [edi + 0x12c], edx
mov edx, dword [esi + 0x224]
mov dword [edi + 0x120], eax
mov eax, dword [esi + 0x234]
mov dword [edi + 0x124], ecx
mov dword [edi + 0x128], edx
mov dword [edi + 0x11c], eax
inc ebp
add esp, 0xc
add esi, 0x278
add edi, 0x190
cmp ebp, dword [esp + 0x14]
jb 0x100212b0
push 0x80
lea ecx, [esp + 0x2f8]
push ecx
push ebx
call sym.Flashtoollib.dll_DL_Rom_GetInfoAll
mov esi, eax
test esi, esi
jne 0x10021271
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jbe 0x100213fb
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 0x10021395
sub eax, edx
push eax
push esi
push edi
call fcn.100d42fb
add esp, 0xc
test eax, eax
jne 0x100213ca
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100213b2
sub eax, edx
push eax
push esi
push edi
call fcn.100d42fb
add esp, 0xc
test eax, eax
je 0x100213db
inc ebp
add esi, 0x190
cmp ebp, 0x80
jb 0x10021390
jmp 0x100213ee
imul ebp, ebp, 0x190
mov eax, dword [esp + ebp + 0x464]
mov dword [edi + 0x170], eax
inc ebx
add edi, 0x190
cmp ebx, dword [esp + 0x14]
jb 0x10021385
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0x20904], 0xffffffff
call fcn.10054f00
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.100d32e1
add esp, 0x208f0
ret 8