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

Disassembly:
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xdc]
lea eax, [esp + 0x78]
push ebp
push esi
mov esi, dword [esp + 0xec]
push edi
push esi
push dword [esp + 0xf0]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x70]
push ebx
push eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x3c], ecx
push eax
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x64]
call fcn.1005b3da
cmp esi, 8
jb 0x1005b2a1
shr esi, 3
xor ecx, ecx
mov dword [esp + 0x1c], ecx
xor ebp, ebp
cmp dword [esp + ecx + 0x68], ebp
jbe 0x1005b28c
mov edx, dword [esp + ecx + 0x4c]
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], edx
imul edi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
test edx, edx
je 0x1005b27b
mov edx, dword [ecx + 0x1009b69c]
imul edx, esi
mov edi, dword [esp + ecx + 0x84]
add edi, eax
add edi, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x1009b6b8]
mov eax, dword [esp + 0x10]
imul edx, ebp
add edx, dword [ecx + 0x1009b680]
imul edx, ebx
add edx, dword [ecx + 0x1009b664]
mov ecx, dword [esp + 0x14]
imul edx, esi
add edx, dword [esp + 0x2c]
xor ebx, ebx
test esi, esi
je 0x1005b25b
mov al, byte [edi + ebx]
mov byte [edx + ebx], al
inc ebx
cmp ebx, esi
jb 0x1005b24c
mov eax, dword [esp + 0x10]
add edi, esi
add edx, eax
sub ecx, 1
jne 0x1005b246
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xe8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
inc ebp
add eax, edi
mov dword [esp + 0x18], eax
cmp ebp, dword [esp + ecx + 0x68]
jb 0x1005b201
add ecx, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0x1c
jne 0x1005b1de
jmp 0x1005b3cd
imul ebx, esi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0xe8], ebx
mov ebp, dword [esp + edi + 0x4c]
xor ebx, ebx
imul ebp, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], ebp
cmp dword [esp + edi + 0x68], ebx
jbe 0x1005b3bd
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [esp + edi + 0x4c], 0
jbe 0x1005b3a8
mov ecx, dword [edi + 0x1009b6b8]
mov eax, dword [edi + 0x1009b69c]
imul ecx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1009b664]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add ecx, dword [edi + 0x1009b680]
mov eax, dword [esp + edi + 0x84]
imul ecx, dword [esp + 0xe8]
xor ebp, ebp
lea eax, [edx + eax*8]
mov edx, dword [esp + edi + 0x4c]
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x30]
add eax, ebp
mov dword [esp + 0x38], edi
imul eax, esi
add eax, ecx
mov dword [esp + 0x40], eax
test esi, esi
je 0x1005b387
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], esi
mov edx, ebx
lea ecx, [esp + 0x38]
call fcn.1006397c
mov byte [esp + 0x3c], al
lea ecx, [esp + 0x40]
push dword [esp + 0x3c]
mov edx, edi
call fcn.10064623
sub esi, 1
jne 0x1005b34d
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add edi, esi
add ebp, ebx
sub edx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
jne 0x1005b32a
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
inc ebx
add edx, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edx
cmp ebx, dword [esp + edi + 0x68]
jb 0x1005b2d2
add edi, 4
mov dword [esp + 0x24], edi
cmp edi, 0x1c
jne 0x1005b2b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 0xc