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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x44], ecx
push ebp
push esi
push edi
cmp ebx, 1
jb 0x5a6949
mov edi, dword [esp + 0x88]
lea esi, [ebx + 1]
push 0x80
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], esi
mov ebp, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], ebp
lea eax, [ebp - 1]
mov dword [esp + 0x5c], eax
lea eax, [ebx*2 + 1]
mov dword [esp + 0x70], eax
mov eax, esi
imul eax, esi
mov dword [esp + 0x68], eax
call fcn.0044b193
mov eax, ecx
push eax
push ebp
mov ebp, dword [esp + 0x58]
mov ecx, ebp
call fcn.00434812
push 0x20
lea ecx, [esp + 0x60]
call fcn.0044b193
push ecx
lea eax, [ebp + 4]
lea ecx, [ebx*2 + 1]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, eax
call fcn.00434812
xor edx, edx
mov ebp, edx
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x60], edx
jbe 0x5a6949
mov ecx, dword [edi + 4]
mov eax, dword [edi]
imul ecx, ebp
mov ebp, edx
mov edi, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
movzx ecx, byte [esp + 0x17]
imul ecx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
movzx ecx, ah
movzx eax, al
imul eax, esi
imul ecx, esi
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x16]
imul eax, esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], eax
push ebp
mov ecx, edi
call fcn.00454273
inc ebp
lea ecx, [esp + 0x70]
push ebp
mov dword [eax], esi
lea eax, [esp + 0x18]
push eax
call fcn.005a6953
cmp ebp, ebx
jbe 0x5a66a4
mov edi, dword [esp + 0x88]
xor esi, esi
mov ebp, dword [esp + 0x2c]
inc esi
cmp esi, dword [esp + 0x58]
mov ecx, esi
mov eax, dword [edi + 4]
cmova ecx, dword [esp + 0x58]
imul eax, ebp
add ecx, eax
mov eax, dword [edi]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], eax
lea eax, [esi + ebx]
push eax
call fcn.00454273
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [ecx], eax
mov eax, ebx
sub eax, esi
lea ecx, [esp + 0x70]
inc eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005a6953
movzx eax, byte [esp + 0x16]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
movzx ecx, ah
add dword [esp + 0x1c], ecx
movzx eax, al
add dword [esp + 0x20], eax
movzx eax, byte [esp + 0x17]
add dword [esp + 0x24], eax
inc esi
cmp esi, ebx
jbe 0x5a66d0
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
cmp dword [esp + 0x54], eax
jbe 0x5a6902
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], esi
mov ecx, dword [esp + 0x50]
push eax
call fcn.00454273
mov ecx, eax
xor edx, edx
mov eax, esi
mov esi, dword [esp + 0x64]
div esi
xor edx, edx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x14]
div esi
xor edx, edx
mov byte [ecx + 1], al
mov eax, dword [esp + 0x30]
div esi
xor edx, edx
mov byte [ecx], al
mov eax, dword [esp + 0x34]
div esi
lea edx, [ebx*2 + 1]
mov byte [ecx + 3], al
mov ecx, dword [esp + 0x38]
sub ecx, ebx
lea eax, [ecx + edx]
cmp eax, edx
cmovb ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00454273
mov ecx, dword [esp + 0x48]
mov esi, eax
add ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
cmp ecx, edx
mov al, byte [esi + 1]
cmovbe edx, ecx
mov byte [esp + 0x11], al
mov al, byte [esi]
mov byte [esp + 0x12], al
mov al, byte [esi + 3]
mov byte [esp + 0x13], al
mov eax, dword [edi + 4]
mov bl, byte [esi + 2]
imul eax, ebp
mov ebp, dword [esp + 0x18]
add edx, eax
mov eax, dword [edi]
mov edi, dword [esp + 0x5c]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x1c]
shr ecx, 0x10
movzx ecx, cl
add ebp, ecx
mov dword [esi], eax
mov esi, dword [esp + 0x20]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add edx, ecx
mov dword [esp + 0x18], ebp
sub ebp, dword [esp + 0x3c]
add dword [esp + 0x4c], ebp
movzx ecx, al
add esi, ecx
shr eax, 0x18
mov ecx, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x20], esi
sub esi, dword [esp + 0x40]
mov eax, edx
add dword [esp + 0x30], esi
sub eax, edi
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
sub ecx, dword [esp + 0x44]
add dword [esp + 0x34], ecx
inc eax
mov dword [esp + 0x1c], edx
cmp eax, dword [esp + 0x6c]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x38], ecx
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00454273
mov esi, eax
movzx ecx, bl
movzx eax, byte [esp + 0x12]
movzx ebp, byte [esi + 2]
movzx ebx, byte [esi + 1]
mov edx, ebp
sub dword [esp + 0x18], ebp
sub edx, ecx
add dword [esp + 0x3c], edx
mov edx, ebx
movzx ecx, byte [esp + 0x11]
sub dword [esp + 0x1c], ebx
sub edx, ecx
mov ebx, dword [esp + 0x8c]
add edi, edx
movzx edx, byte [esi + 3]
sub dword [esp + 0x24], edx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x5c], edi
movzx edi, byte [esi]
sub dword [esp + 0x20], edi
mov ecx, edi
mov edi, dword [esp + 0x88]
sub ecx, eax
add dword [esp + 0x40], ecx
mov ecx, edx
movzx eax, byte [esp + 0x13]
mov esi, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x44], ecx
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x54]
jb 0x5a6776
mov ecx, dword [esp + 0x50]
push 0
call fcn.00454273
mov edx, dword [edi + 4]
mov esi, eax
mov ecx, dword [edi]
mov ebx, dword [esp + 0x54]
imul edx, ebp
lea ecx, [ecx + edx*4]
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub ebx, 1
jne 0x5a691e
mov ebx, dword [esp + 0x8c]
inc ebp
push 0
mov dword [esp + 0x30], ebp
pop edx
lea esi, [ebx + 1]
cmp ebp, dword [esp + 0x60]
jb 0x5a663b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8