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

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, edx
push edi
mov edi, eax
mov ebx, ecx
test esi, esi
je 0x1001d087
cmp dword [esp + 0x58], 0
je 0x1001d087
test ebx, ebx
je 0x1001d087
test edi, edi
je 0x1001d087
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x1001d093
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
push ebp
push esi
mov dword [eax], 0
call sym.leptonlib.dll_lheapGetCount
mov ebp, eax
add esp, 4
cmp ebp, dword [esp + 0x70]
mov dword [esp + 0x38], ebp
jl 0x1001d2f7
push esi
call sym.leptonlib.dll_numaGetIArray
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
push eax
call sym.leptonlib.dll_numaGetIArray
push ebx
mov dword [esp + 0x20], eax
call sym.leptonlib.dll_numaGetIArray
push edi
mov dword [esp + 0x34], eax
call sym.leptonlib.dll_numaGetIArray
mov ecx, dword [esp + 0x70]
mov esi, dword [sym.imp.MSVCR90.dll_calloc]
mov edi, eax
push 4
push ecx
mov dword [esp + 0x30], edi
call esi
mov edx, dword [esp + 0x7c]
push 4
push edx
mov dword [esp + 0x30], eax
call esi
add esp, 0x20
mov ebx, eax
mov dword [esp + 0x1c], 0
test ebp, ebp
jle 0x1001d2cc
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, ebp
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x1001d140
mov eax, dword [esp + 0x74]
cmp dword [eax], 1
je 0x1001d2cc
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
lea edx, [ecx*4]
push edx
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x70]
lea edx, [ecx*4]
push edx
push 0
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + ebp]
mov edx, dword [esp + 0x28]
mov esi, 1
mov dword [edx + ecx*4], esi
mov eax, dword [ebp]
mov ecx, dword [esp + 0x58]
mov dword [ebx + eax*4], esi
mov edx, dword [ecx + ebp]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + ebp]
add esp, 0x18
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x70], esi
je 0x1001d2c6
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
xor edx, edx
sub ecx, edi
mov dword [esp + 0x34], edx
mov eax, edi
mov dword [esp + 0x30], ecx
jmp 0x1001d1e0
cmp edx, dword [esp + 0x1c]
je 0x1001d269
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x10]
cmp dword [edx + ecx*4], 0
lea ecx, [edx + ecx*4]
mov dword [esp + 0x54], ecx
jg 0x1001d269
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + eax]
cmp dword [ebx + edx*4], 0
jg 0x1001d269
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ecx, dword [ecx + eax]
mov edx, edi
sub edx, ecx
jns 0x1001d228
sub ecx, edi
mov dword [esp + 0x2c], ecx
jmp 0x1001d22c
mov dword [esp + 0x2c], edx
mov edx, dword [eax]
mov edi, dword [esp + 0x28]
sub edi, edx
jns 0x1001d23c
sub edx, dword [esp + 0x28]
jmp 0x1001d23e
mov edx, edi
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x2c], ecx
jg 0x1001d265
cmp edx, dword [esp + 0x6c]
jg 0x1001d265
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
inc esi
cmp esi, dword [esp + 0x70]
mov dword [edx], esi
mov edx, dword [ecx + eax]
mov dword [ebx + edx*4], esi
jge 0x1001d281
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
inc edx
add eax, 4
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x34], edx
jl 0x1001d1e0
jmp 0x1001d2ae
cmp dword [esp + 0x78], 0
mov eax, dword [esp + 0x74]
mov dword [eax], 1
je 0x1001d2aa
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
push ecx
push ebx
push edx
push eax
call fcn.1001cdb0
add esp, 0x10
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jl 0x1001d140
jmp 0x1001d2cc
mov ecx, dword [esp + 0x74]
mov dword [ecx], esi
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
push edi
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
push ebx
call esi
add esp, 0x18
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret