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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8c]
cmp eax, 0x18
jbe 0x5aaf83
push eax
call fcn.0058da90
mov ecx, dword [esi + 0x8c]
mov edi, eax
push ecx
push 0
push edi
lea ebx, [ecx + edi]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
call fcn.005c0be0
mov eax, dword [esi + 0x78]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [esi + 0x78]
add dword [esi + 0x98], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x7c]
add dword [esi + 0x98], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x80]
add dword [esi + 0x98], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x84]
add dword [esi + 0x98], eax
mov eax, dword [esi + 0x88]
mov dword [edi + 0x14], eax
xor edi, edi
mov eax, dword [esi + 0x88]
add dword [esi + 0x98], eax
xor eax, eax
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
sar ecx, 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jle 0x5aad62
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
sar ecx, 2
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
jge 0x5aaf79
lea edx, [eax*4]
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x10], edx
mov eax, dword [edx + eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5aaf79
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x30]
mov edx, dword [eax + edx]
mov eax, dword [ebp - 0x10]
imul edx, dword [ecx + eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
add edx, edi
lea edi, [edx + eax*8]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x18]
jl 0x5aad12
mov edx, dword [esi + 0x28]
sub edx, dword [esi + 0x24]
sar edx, 4
test edx, edx
jle 0x5aad94
mov ebx, dword [esi + 0x54]
mov ecx, dword [esi + 0x60]
sub ebx, ecx
nop word [eax + eax]
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
imul eax, dword [ecx - 4]
add edi, eax
sub edx, 1
jne 0x5aad80
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
sub ecx, eax
sar ecx, 2
test ecx, ecx
jle 0x5aadad
add edi, dword [eax]
lea eax, [eax + 4]
sub ecx, 1
jne 0x5aada3
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edi
test edi, edi
jle 0x5aaf83
add dword [esi + 0x98], edi
xor edx, edx
mov ecx, dword [esi + 0x1c]
add eax, 0x18
sub ecx, dword [esi + 0x18]
xor edi, edi
mov dword [ebp - 4], edx
test ecx, 0xffffffe0
jle 0x5aae7d
nop dword [eax]
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
sar ecx, 2
cmp edx, ecx
jge 0x5aaf83
mov ecx, dword [esi + 0x9c]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x5aaf83
mov ecx, dword [ecx + 4]
lea edi, [edi + ecx*8]
cmp eax, ebx
jae 0x5aaf83
mov dword [eax], edi
add eax, 4
add dword [esi + 0x98], edi
cmp eax, ebx
jae 0x5aaf83
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
add eax, 4
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx + edx*4]
add dword [esi + 0x98], ecx
cmp eax, ebx
jae 0x5aaf83
mov ebx, dword [ebp - 4]
mov dword [eax], 0
add eax, 4
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x30]
mov ecx, dword [ecx + ebx*4]
imul ecx, dword [edx + ebx*4]
mov edx, ebx
mov ebx, dword [ebp - 8]
inc edx
mov dword [ebp - 4], edx
add edi, ecx
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
sar ecx, 5
cmp edx, ecx
jl 0x5aade0
mov ecx, dword [esi + 0x28]
xor edx, edx
sub ecx, dword [esi + 0x24]
mov dword [ebp - 4], edx
test ecx, 0xfffffff0
jle 0x5aaefb
cmp eax, ebx
jae 0x5aaf83
mov dword [eax], edi
add eax, 4
add dword [esi + 0x98], edi
cmp eax, ebx
jae 0x5aaf83
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
add eax, 4
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + edx*4]
add dword [esi + 0x98], ecx
cmp eax, ebx
jae 0x5aaf83
mov ebx, dword [ebp - 4]
mov dword [eax], 0
add eax, 4
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x54]
mov ecx, dword [ecx + ebx*4]
imul ecx, dword [edx + ebx*4]
mov edx, ebx
mov ebx, dword [ebp - 8]
inc edx
mov dword [ebp - 4], edx
add edi, ecx
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
sar ecx, 4
cmp edx, ecx
jl 0x5aae90
mov ecx, dword [esi + 0x40]
xor edx, edx
sub ecx, dword [esi + 0x3c]
mov dword [ebp - 8], edx
test ecx, 0xfffffffc
jle 0x5aaf68
nop
cmp eax, ebx
jae 0x5aaf83
mov dword [eax], edi
add eax, 4
add dword [esi + 0x98], edi
cmp eax, ebx
jae 0x5aaf83
mov ecx, dword [esi + 0x3c]
shl edx, 2
mov dword [ebp - 0x1c], edx
mov ecx, dword [edx + ecx]
mov dword [eax], ecx
add eax, 4
mov ecx, dword [esi + 0x3c]
mov ecx, dword [edx + ecx]
add dword [esi + 0x98], ecx
cmp eax, ebx
jae 0x5aaf83
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 8]
mov dword [eax], 0
add eax, 4
mov edx, dword [esi + 0x3c]
add edi, dword [edx + ecx]
mov ecx, dword [esi + 0x40]
sub ecx, edx
mov edx, dword [ebp - 8]
sar ecx, 2
cmp edx, ecx
jl 0x5aaf10
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret