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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
push ebp
push esi
push edi
cmp ebx, 1
jb 0x5a7d67
mov esi, dword [esp + 0x88]
lea edi, [ebx + 1]
push 0x80
lea ecx, [esp + 0x64]
mov eax, dword [esi]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ebp
lea eax, [ebp - 1]
mov dword [esp + 0x60], eax
lea eax, [ebx*2 + 1]
mov dword [esp + 0x70], eax
mov eax, edi
imul eax, edi
mov dword [esp + 0x6c], eax
call fcn.0044b417
mov eax, ecx
push eax
push ebp
mov ebp, dword [esp + 0x5c]
mov ecx, ebp
call fcn.00434a21
push 0x20
lea ecx, [esp + 0x64]
call fcn.0044b417
push ecx
lea eax, [ebp + 4]
lea ecx, [ebx*2 + 1]
mov dword [esp + 0x30], eax
push ecx
mov ecx, eax
call fcn.00434a21
xor ecx, ecx
mov ebp, ecx
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x64], ecx
jbe 0x5a7d67
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], ecx
mov eax, dword [eax]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], ecx
mov eax, dword [eax + ebp*4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
movzx ecx, byte [esp + 0x1b]
imul ecx, edi
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x48], ecx
movzx ecx, ah
imul ecx, edi
movzx eax, al
mov dword [esp + 0x60], ecx
movzx ecx, byte [esp + 0x1a]
imul ecx, edi
imul eax, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
push edi
mov ecx, ebp
call fcn.0045450e
inc edi
lea ecx, [esp + 0x70]
push edi
mov dword [eax], esi
lea eax, [esp + 0x1c]
push eax
call fcn.005a795d
cmp edi, ebx
jbe 0x5a7a9c
mov ebp, dword [esp + 0x30]
lea edi, [ebx + 1]
xor esi, esi
inc esi
mov eax, dword [esp + 0x88]
mov ecx, esi
cmp esi, dword [esp + 0x5c]
cmova ecx, dword [esp + 0x5c]
mov eax, dword [eax]
imul ecx, dword [eax + 4]
mov eax, dword [eax]
add ecx, ebp
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], eax
lea eax, [esi + ebx]
push eax
call fcn.0045450e
mov ecx, eax
mov eax, dword [esp + 0x50]
mov dword [ecx], eax
mov eax, ebx
sub eax, esi
lea ecx, [esp + 0x70]
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005a795d
movzx eax, byte [esp + 0x1a]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
movzx ecx, ah
add dword [esp + 0x20], ecx
movzx eax, al
add dword [esp + 0x24], eax
movzx eax, byte [esp + 0x1b]
add dword [esp + 0x28], eax
inc esi
cmp esi, ebx
jbe 0x5a7ac4
xor eax, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x58], eax
jbe 0x5a7cfe
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x54]
push eax
call fcn.0045450e
mov ecx, eax
xor edx, edx
mov eax, esi
mov esi, dword [esp + 0x68]
div esi
xor edx, edx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x18]
div esi
xor edx, edx
mov byte [ecx + 1], al
mov eax, dword [esp + 0x34]
div esi
xor edx, edx
mov byte [ecx], al
mov eax, dword [esp + 0x38]
div esi
lea edx, [ebx*2 + 1]
mov byte [ecx + 3], al
mov ecx, dword [esp + 0x3c]
sub ecx, ebx
lea eax, [ecx + edx]
cmp eax, edx
cmovb ecx, eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0045450e
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x5c]
add ecx, edi
cmp ecx, edx
mov edi, dword [esp + 0x60]
mov al, byte [esi + 1]
cmovbe edx, ecx
mov byte [esp + 0x15], al
mov al, byte [esi]
mov byte [esp + 0x16], al
mov al, byte [esi + 3]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x88]
mov bl, byte [esi + 2]
mov eax, dword [eax]
imul edx, dword [eax + 4]
mov eax, dword [eax]
add edx, ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
add ebp, ecx
mov dword [esi], eax
mov esi, dword [esp + 0x24]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add edx, ecx
mov dword [esp + 0x1c], ebp
sub ebp, dword [esp + 0x40]
add dword [esp + 0x50], ebp
movzx ecx, al
add esi, ecx
shr eax, 0x18
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x24], esi
sub esi, dword [esp + 0x44]
mov eax, edx
add dword [esp + 0x34], esi
sub eax, edi
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
sub ecx, dword [esp + 0x48]
add dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
inc eax
cmp eax, dword [esp + 0x6c]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x3c], ecx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0045450e
mov esi, eax
movzx ecx, bl
movzx eax, byte [esp + 0x16]
movzx ebp, byte [esi + 2]
movzx ebx, byte [esi + 1]
mov edx, ebp
sub dword [esp + 0x20], ebx
sub edx, ecx
add dword [esp + 0x40], edx
mov edx, ebx
movzx ecx, byte [esp + 0x15]
sub dword [esp + 0x1c], ebp
sub edx, ecx
mov ebx, dword [esp + 0x8c]
add edi, edx
movzx edx, byte [esi + 3]
sub dword [esp + 0x28], edx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x60], edi
movzx edi, byte [esi]
sub dword [esp + 0x24], edi
mov ecx, edi
mov esi, dword [esp + 0x50]
lea edi, [ebx + 1]
sub ecx, eax
movzx eax, byte [esp + 0x17]
add dword [esp + 0x44], ecx
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x48], ecx
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x58]
jb 0x5a7b71
mov ecx, dword [esp + 0x54]
push 0
call fcn.0045450e
mov esi, dword [esp + 0x88]
mov ebx, eax
mov eax, dword [esp + 0x58]
xor edi, edi
mov dword [esp + 0x60], eax
mov eax, dword [esi]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov edx, dword [eax + 4]
mov ecx, edi
imul edx, ecx
inc edi
mov ecx, dword [eax]
mov eax, dword [ebx]
lea ebx, [ebx + 4]
add edx, ebp
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x50]
sub esi, 1
jne 0x5a7d26
mov ebx, dword [esp + 0x8c]
inc ebp
mov esi, dword [esp + 0x88]
push 0
mov dword [esp + 0x34], ebp
lea edi, [ebx + 1]
pop ecx
cmp ebp, dword [esp + 0x64]
jb 0x5a7a31
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8