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

Disassembly:
push 0xffffffffffffffff
push 0x1011f07e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ebx
cmp ax, word [esp + 0x1dc]
jae 0x1001dbff
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ecx
jmp 0x1001d870
mov dword [esp + 0x24], 1
call fcn.1005bc20
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.1000a440
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov dword [eax], ebx
mov dword [esp + 0x1d0], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001d8b4
push eax
call fcn.10073310
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001dbb1
lea eax, [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x1003fa80
mov dword [esp + 0x4c], 0x1003fa90
jmp 0x1001d8e0
push 0x1012b9e4
push 0x1012c308
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0x1c
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0xec]
call fcn.1001a7c0
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x1dc], 1
push 3
push 0x1012ba0c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.10007180
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0xf4]
push edx
mov byte [esp + 0x1e8], 2
call fcn.1000a2c0
add esp, 0xc
push eax
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x1e4], 3
call fcn.1000a370
add esp, 0xc
push eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1e0], 4
call fcn.1000a370
add esp, 0xc
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x1dc], 5
call fcn.1000a370
add esp, 0xc
mov ebp, eax
push str.rblist__d_
lea eax, [esp + 0x10c]
push eax
mov byte [esp + 0x1d8], 6
call fcn.10009e20
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x1d4], 7
call fcn.10011e10
add esp, 4
lea edx, [esp + 0x8c]
mov ecx, eax
call fcn.10009f20
mov edi, eax
mov byte [esp + 0x1d0], 8
call fcn.1005bc20
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x104]
push eax
call fcn.1000a4f0
add esp, 0xc
mov byte [esp + 0x1d0], 9
mov esi, dword [eax + 4]
mov eax, dword [edi + 0x14]
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x1001da2c
mov edi, dword [edi + 4]
jmp 0x1001da2f
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.100087c0
mov eax, dword [ebp + 0x14]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
jb 0x1001da4a
mov ebp, dword [ebp + 4]
jmp 0x1001da4d
add ebp, 4
push eax
push ebp
mov ecx, esi
call fcn.100087c0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1d0], 8
call fcn.10006d40
cmp dword [esp + 0xa4], edi
jb 0x1001da83
mov ecx, dword [esp + 0x90]
push ecx
call fcn.100d41ba
add esp, 4
mov esi, 0xf
lea edi, [esp + 0x108]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.10003aa0
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jb 0x1001dac1
mov edx, dword [esp + 0x58]
push edx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x88], edi
jb 0x1001dae3
mov eax, dword [esp + 0x74]
push eax
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
cmp dword [esp + 0xc0], edi
jb 0x1001db0e
mov ecx, dword [esp + 0xac]
push ecx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
cmp dword [esp + 0xf8], edi
jb 0x1001db3c
mov edx, dword [esp + 0xe4]
push edx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
cmp dword [esp + 0x40], edi
jb 0x1001db64
mov eax, dword [esp + 0x2c]
push eax
call fcn.100d41ba
add esp, 4
mov byte [esp + 0x1d0], bl
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp dword [esp + 0xdc], edi
jb 0x1001db90
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.100d41ba
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
cmp eax, ebx
jne 0x1001d8e0
mov dword [esp + 0x1d0], 0xffffffff
cmp eax, ebx
je 0x1001dbcd
push eax
call fcn.10073310
add esp, 4
mov dword [esp + 0x14], ebx
movzx eax, word [esp + 0x18]
lea edx, [eax + eax*8]
shl edx, 6
add edx, dword [esp + 0x1d8]
push edx
call fcn.1001cff0
mov eax, dword [esp + 0x1c]
inc eax
add esp, 4
mov dword [esp + 0x18], eax
cmp ax, word [esp + 0x1dc]
jb 0x1001d870
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0
ret