Function at 0x1005b4e6
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 0x1005b606
shr esi, 3
xor ecx, ecx
mov dword [esp + 0x1c], ecx
xor ebp, ebp
cmp dword [esp + ecx + 0x68], ebp
jbe 0x1005b5f1
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 0x1005b5e0
mov edx, dword [ecx + 0x1009b69c]
imul edx, esi
mov edi, dword [esp + ecx + 0x84]
add edi, eax
add edi, dword [esp + 0x2c]
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 + 0x28]
xor ebx, ebx
test esi, esi
je 0x1005b5c0
mov al, byte [edx + ebx]
mov byte [edi + ebx], al
inc ebx
cmp ebx, esi
jb 0x1005b5b1
mov eax, dword [esp + 0x10]
add edi, esi
add edx, eax
sub ecx, 1
jne 0x1005b5ab
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 0x1005b566
add ecx, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0x1c
jne 0x1005b543
jmp 0x1005b732
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 0x1005b722
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [esp + edi + 0x4c], 0
jbe 0x1005b70d
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 edx, [edx + eax*8]
mov eax, dword [esp + edi + 0x4c]
mov dword [esp + 0x18], edx
mov edi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add eax, ebp
mov dword [esp + 0x40], edx
imul eax, esi
add eax, ecx
mov dword [esp + 0x38], eax
test esi, esi
je 0x1005b6ec
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 0x1005b6b2
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
add edx, esi
add ebp, ebx
sub edi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
jne 0x1005b68f
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 0x1005b637
add edi, 4
mov dword [esp + 0x24], edi
cmp edi, 0x1c
jne 0x1005b616
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 0xc