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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.10005790
test eax, eax
je 0x10006001
mov ecx, ebp
call fcn.10002980
test eax, eax
je 0x10006001
mov ecx, dword [esp + 0x9c]
test ecx, ecx
jl 0x10006001
cmp ecx, eax
jge 0x10006001
mov edx, dword [ebp + 0xacc]
lea eax, [ecx + ecx*4]
or edi, 0xffffffff
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x30], eax
cmp dword [eax + edx + 0x2a], edi
je 0x10005d1c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4
mov eax, dword [ebp + 0xac4]
lea esi, [ecx + ecx*4]
shl esi, 2
mov dword [esp + 0x20], 0
lea ecx, [esi + eax]
mov eax, dword [esi + eax]
test eax, eax
jne 0x10005d45
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], 1
push eax
mov ecx, ebp
call fcn.10004690
mov ebx, eax
cmp ebx, edi
je 0x10006001
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005d7f
mov ecx, dword [ebp + 0xac4]
mov edx, dword [esi + ecx + 0x10]
mov ecx, ebp
push edx
call fcn.10004690
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x10005d83
mov dword [esp + 0x1c], edi
jmp 0x10005d83
mov dword [esp + 0x1c], ebx
xor esi, esi
mov edi, ebx
xor eax, eax
lea ecx, [esp + 0x10]
push 8
mov dword [esp + 0x14], eax
push ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x20], eax
call fcn.10024490
cmp eax, 8
jne 0x10006001
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10005dba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005e10
add edi, 8
inc esi
cmp esi, 0x64
jne 0x10005d87
lea edx, [esi*8]
push 0
sub edx, esi
push 0
push 0
mov edi, esi
shl edx, 3
push 0
push edx
mov dword [esp + 0x48], edi
call sub.platform.dll_Ordinal_24
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x10006001
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
test edi, edi
mov dword [esp + 0x2c], esi
jle 0x10005fca
mov dword [esp + 0x28], eax
jmp 0x10005e3f
test esi, esi
jne 0x10005dc3
mov edx, dword [ebp + 0xacc]
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax + edx + 0x2a], esi
mov ecx, dword [ebp + 0xacc]
mov dword [eax + ecx + 0x2e], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 4
mov esi, dword [esp + 0x2c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x40]
push 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x20], eax
call fcn.10024490
cmp eax, 8
jne 0x10005ff4
mov eax, dword [esp + 0x1c]
or edi, 0xffffffff
cmp eax, edi
je 0x10005ecd
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005ecd
mov ecx, dword [ebp + 0xc]
xor edx, edx
lea eax, [esp + 0x38]
push 8
mov dword [esp + 0x3c], edx
push eax
push esi
mov dword [esp + 0x48], edx
call fcn.10024490
cmp eax, 8
je 0x10005eb4
add esi, 8
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x50], edi
jmp 0x10005ed9
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], esi
add esi, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x10]
jmp 0x10005ed9
mov esi, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
mov ecx, edx
mov dword [esp + 0x44], ebx
and ecx, 0x80000000
or eax, ecx
je 0x10005f21
push edx
push esi
lea eax, [esp + 0x62]
push str._16x
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], edi
mov word [esp + 0x58], 0
jmp 0x10005f94
push esi
mov ecx, ebp
call fcn.10004690
mov esi, eax
cmp esi, edi
je 0x10006010
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x78]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
push 0x20
push edx
push esi
call fcn.10024490
cmp eax, 4
jl 0x10006017
lea eax, [esp + 0x7a]
push 0x1d
lea ecx, [esp + 0x5e]
push eax
push ecx
mov byte [esp + 0xa3], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
mov dx, word [esp + 0x84]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x77], 0
mov word [esp + 0x58], dx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, 0xe
lea esi, [esp + 0x40]
mov edi, edx
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
add edx, 0x38
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jl 0x10005e3b
mov eax, dword [esp + 0x18]
mov edi, ecx
mov edx, dword [ebp + 0xacc]
mov ecx, dword [esp + 0x30]
mov dword [ecx + edx + 0x2e], eax
mov eax, dword [ebp + 0xacc]
mov dword [ecx + eax + 0x2a], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4
mov ecx, dword [esp + 0x18]
push ecx
call sub.platform.dll_Ordinal_27
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 4
mov edx, dword [esp + 0x18]
push edx
jmp 0x10005ff9
mov eax, dword [esp + 0x18]
push eax
jmp 0x10005ff9