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

Disassembly:
push 0xffffffffffffffff
push 0x100fa3f4
mov eax, dword fs:[0]
push eax
mov eax, 0x27c94
call fcn.100bbf80
mov eax, dword [0x1012fdf0]
xor eax, esp
mov dword [esp + 0x27c90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x27ca8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27cb8]
mov ebp, dword [esp + 0x27cbc]
push 2
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov edi, 0xf
push 0x101085f8
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov esi, 1
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10005cd0
push str.._adaptor_cflashtool_api.cpp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x27cbc], ebx
call fcn.10007a10
add esp, 0xc
push str.__line:
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x27cbc], 1
call fcn.10007a10
add esp, 0xc
push 0x101091c4
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x27cbc], 2
call fcn.10007a10
sub esp, 0x10
mov ecx, esp
mov byte [esp + 0x27ccc], 3
mov dword [esp + 0x58], esp
push 0x101085d0
push eax
push ecx
call fcn.10007a10
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x78], esp
mov byte [esp + 0x27ce8], 4
push 0x27
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_RomGetInfoAll
mov byte [ecx + 4], bl
call fcn.10005cd0
mov ecx, esi
lea edx, [esp + 0xd0]
mov byte [esp + 0x27ce8], 3
call fcn.1003be80
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x1001d472
mov edx, dword [esp + 0x48]
push edx
call fcn.100b3111
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1001d491
mov eax, dword [esp + 0x64]
push eax
call fcn.100b3111
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x94], esi
jb 0x1001d4b6
mov ecx, dword [esp + 0x80]
push ecx
call fcn.100b3111
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov byte [esp + 0x27cb0], 9
cmp dword [esp + 0x38], esi
jb 0x1001d4e6
mov edx, dword [esp + 0x24]
push edx
call fcn.100b3111
add esp, 4
push 0x103
lea eax, [esp + 0x27ba1]
push ebx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x27ba8], bl
call fcn.100b8cd0
mov eax, dword [0x10135b94]
add esp, 0xc
cmp eax, ebx
je 0x1001d533
push 0x1010c45c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001d533
lea ecx, [esp + 0x27b9c]
push ecx
push ebp
call eax
mov edi, ebp
call fcn.1001a2b0
mov esi, eax
mov edi, edx
mov dword [esp + 0xbc], ebx
xor eax, eax
jmp 0x1001d550
mov cl, byte [esp + eax + 0x27b9c]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x1001d550
lea edx, [esp + 0x27b9c]
push edx
call fcn.1003ce20
add esp, 4
test al, al
je 0x1001d590
mov dword [esp + 0xbc], 2
mov dword [esp + 0x2c0], esi
mov dword [esp + 0x2c4], edi
lea eax, [esp + 0x2d4]
push eax
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.FlashtoollibEx.dll_flashtool_get_scatter_info]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x13fa0]
push eax
lea ecx, [esp + 0xc4]
push ecx
push edx
call dword [sym.imp.FlashtoollibEx.dll_get_revised_scatter_partitions]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp edx, ebx
jbe 0x1001d67d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x13f9c]
add ecx, 0x188
mov ebp, edx
lea esp, [esp]
mov edx, ecx
sub edx, eax
mov esi, eax
lea edi, [edx - 0x188]
lea esp, [esp]
mov dl, byte [esi]
mov byte [esi + edi], dl
inc esi
cmp dl, bl
jne 0x1001d600
mov edx, dword [eax + 0x240]
mov dword [ecx - 0x138], edx
mov edx, dword [eax + 0x244]
mov dword [ecx - 0x134], edx
mov edx, dword [eax + 0x248]
mov dword [ecx], edx
mov edx, dword [eax + 0x24c]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x254]
mov dword [ecx - 8], edx
mov edx, dword [eax + 0x258]
mov dword [ecx - 0xc], edx
mov edx, dword [eax + 0x260]
mov dword [ecx - 0x18], edx
mov edx, dword [eax + 0x25c]
mov dword [ecx - 0x14], edx
mov edx, dword [eax + 0x264]
mov dword [ecx - 0x10], edx
mov edx, dword [eax + 0x274]
mov dword [ecx - 0x1c], edx
add eax, 0x278
add ecx, 0x190
sub ebp, 1
jne 0x1001d5f0
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x27cb4], 0xffffffff
call fcn.1003c130
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x27ca8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c90]
xor ecx, esp
call fcn.100b2691
add esp, 0x27ca0
ret 8