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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [str.]
push edi
mov edi, ecx
mov cl, byte [0x10144264]
mov dword [esp + 0x84], eax
xor eax, eax
mov byte [esp + 0x88], cl
test edi, edi
je 0x10045a10
push ebx
push ebp
xor ebp, ebp
xor edx, edx
cmp dword [edi], eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
jle 0x100458ae
mov ebx, dword [edi + 4]
test ebx, ebx
jle 0x1004589f
mov eax, dword [edi + 0x10]
mov esi, dword [eax + edx*4]
mov edi, edi
cmp dword [esi], 1
jne 0x10045897
mov eax, dword [edi + 8]
mov ecx, edx
sub ecx, eax
jns 0x10045882
sub eax, edx
jmp 0x10045884
mov eax, ecx
cmp eax, 0x20
jge 0x10045891
mov dword [esp + eax*4 + 0x10], 1
cmp ebp, eax
jg 0x10045897
mov ebp, eax
add esi, 4
sub ebx, 1
jne 0x10045870
inc edx
cmp edx, dword [edi]
jl 0x10045861
cmp ebp, 0x1f
jle 0x100458ae
mov ebp, 0x1f
xor eax, eax
mov esi, 1
test ebp, ebp
jle 0x100458d0
lea esp, [esp]
cmp dword [esp + eax*4 + 0x10], 0
je 0x100458ce
inc eax
cmp eax, ebp
jl 0x100458c0
jmp 0x100458d0
xor esi, esi
push 0
call sym.leptonlib.dll_sarrayCreate
mov edi, eax
add esp, 4
test edi, edi
je 0x10045a0d
cmp esi, 1
jne 0x1004599e
cmp ebp, 4
jle 0x10045901
push esi
push str.l_int32_____________wpls2__wpls3__wpls4_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 8
jle 0x10045916
push 1
push str.l_int32_____________wpls5__wpls6__wpls7__wpls8_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 0xc
jle 0x1004592b
push 1
push str.l_int32_____________wpls9__wpls10__wpls11__wpls12_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 0x10
jle 0x10045940
push 1
push str.l_int32_____________wpls13__wpls14__wpls15__wpls16_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 0x14
jle 0x10045955
push 1
push str.l_int32_____________wpls17__wpls18__wpls19__wpls20_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 0x18
jle 0x1004596a
push 1
push str.l_int32_____________wpls21__wpls22__wpls23__wpls24_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 0x1c
jle 0x1004597f
push 1
push str.l_int32_____________wpls25__wpls26__wpls27__wpls28_
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
cmp ebp, 1
jle 0x100459cb
lea ecx, [ebp - 2]
imul ecx, ecx, 0x35
push 1
add ecx, 0x10181b18
push ecx
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
jmp 0x100459cb
mov esi, 2
cmp ebp, esi
jl 0x100459cb
mov ebx, str.l_int32_____________wpls2_
lea esp, [esp]
cmp dword [esp + esi*4 + 0x10], 0
je 0x100459c3
push 1
push ebx
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
inc esi
add ebx, 0x1e
cmp esi, ebp
jle 0x100459b0
push 1
lea edx, [esp + 0x94]
push edx
push edi
call sym.leptonlib.dll_sarrayAddString
mov esi, 2
add esp, 0xc
cmp ebp, esi
jl 0x10045a0b
mov ebx, str.____wpls2__2__wpls_
lea esp, [esp]
cmp dword [esp + esi*4 + 0x10], 0
je 0x10045a03
push 1
push ebx
push edi
call sym.leptonlib.dll_sarrayAddString
add esp, 0xc
inc esi
add ebx, 0x19
cmp esi, ebp
jle 0x100459f0
mov eax, edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
xor ecx, esp
call fcn.101407ce
add esp, 0x8c
ret