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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
mov ecx, dword [esi + 0x2c]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x30]
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x30]
imul ecx, dword [esi + 0x2c]
imul ecx, ecx, 0x348
xor ebp, ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
call fcn.005a3520
mov edx, dword [edi + 4]
add esp, 4
mov dword [edx + 8], eax
cmp dword [esi + 0x38], ebp
mov dword [esp + 0x18], ebp
jle 0x5a943f
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x34]
mov eax, dword [eax + edx*4]
mov esi, dword [ecx + 0x2c]
mov edx, eax
imul edx, edx, 0x754
add edx, dword [ecx + 0x54]
mov edi, eax
imul edi, edi, 0x348
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xa0]
mov edx, dword [edx + 4]
add edi, dword [edx + 8]
cdq
idiv esi
mov esi, dword [ecx + 0x20]
mov ebp, dword [ebx]
mov dword [esp + 0x5c], edi
imul esi, edx
add esi, dword [ecx + 0x18]
cmp esi, ebp
jg 0x5a8d74
mov esi, ebp
mov dword [edi], esi
mov esi, dword [ecx + 0x24]
mov ebp, dword [ebx + 4]
imul esi, eax
add esi, dword [ecx + 0x1c]
cmp esi, ebp
jg 0x5a8d88
mov esi, ebp
add edx, 1
mov dword [edi + 4], esi
imul edx, dword [ecx + 0x20]
add edx, dword [ecx + 0x18]
mov esi, dword [ebx + 8]
cmp edx, esi
jl 0x5a8d9e
mov edx, esi
add eax, 1
mov dword [edi + 8], edx
imul eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x1c]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jl 0x5a8db4
mov eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0x10]
shl ecx, 5
push ecx
call fcn.005a3520
add esp, 4
cmp dword [edi + 0x10], 0
mov dword [edi + 0x14], eax
mov dword [esp + 0x70], 0
jle 0x5a9424
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
nop
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 0x750]
add eax, dword [esp + 0x58]
mov edx, dword [edi]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + ebp]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov esi, dword [edi + 0x14]
add esi, dword [esp + 0x54]
mov dword [esp + 0x38], esi
mov dword [esi], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [edi + 4]
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + ebp]
mov edx, dword [edi + 8]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [edi + 0xc]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
mov dword [esi + 0xc], eax
sub eax, dword [esi + 4]
imul ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
call fcn.005a3520
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x10], eax
imul eax, eax, 0x7c
push eax
call fcn.005a3520
add esp, 8
cmp dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esp + 0x24], 0
jle 0x5a93fc
nop
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x24]
mov edi, dword [esi]
sub ecx, ebx
sub ecx, 1
mov eax, ebx
imul eax, eax, 0x7c
add eax, dword [esi + 0x14]
mov edx, 1
shl edx, cl
mov dword [esp + 0x84], ecx
mov dword [esp + 0x30], eax
lea edi, [edx + edi - 1]
sar edi, cl
mov dword [esp + 0x80], edx
mov dword [eax], edi
mov edi, dword [esi + 4]
lea edi, [edx + edi - 1]
sar edi, cl
mov dword [eax + 4], edi
mov edi, dword [esi + 8]
lea edi, [edi + edx - 1]
sar edi, cl
mov dword [eax + 8], edi
mov esi, dword [esi + 0xc]
lea edx, [edx + esi - 1]
sar edx, cl
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [eax + 0xc], edx
lea ecx, [ecx + ecx + 1]
mov dword [eax + 0x18], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
test byte [ecx], 1
je 0x5a8f2a
mov edi, dword [ecx + ebx*4 + 0x32c]
mov edx, dword [ecx + ebx*4 + 0x3b0]
jmp 0x5a8f31
mov edi, 0xf
mov edx, edi
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, edi
sar esi, cl
mov ebp, 1
shl esi, cl
mov ecx, edx
sar ebx, cl
shl ebp, cl
shl ebx, cl
mov ecx, dword [eax + 0xc]
lea ebp, [ecx + ebp - 1]
mov ecx, edx
sar ebp, cl
shl ebp, cl
mov ecx, dword [eax + 8]
cmp dword [eax], ecx
mov dword [esp + 0x1c], ebp
jne 0x5a8f65
xor ebp, ebp
jmp 0x5a8f7f
mov ecx, edi
mov ebp, 1
shl ebp, cl
mov ecx, dword [eax + 8]
lea ebp, [ecx + ebp - 1]
mov ecx, edi
sar ebp, cl
shl ebp, cl
sub ebp, esi
sar ebp, cl
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
mov dword [eax + 0x10], ebp
jne 0x5a8f8e
xor ebp, ebp
jmp 0x5a8f98
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
mov ecx, edx
sar ebp, cl
cmp dword [esp + 0x24], 0
mov dword [eax + 0x14], ebp
je 0x5a8fb2
add esi, 1
add ebx, 1
sar esi, 1
sar ebx, 1
add edi, 0xffffffff
add edx, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x88], esi
mov dword [esp + 0x64], eax
jl 0x5a8fdb
mov dword [esp + 0x64], edi
mov eax, dword [ecx + 0xc]
cmp eax, edx
mov dword [esp + 0x60], eax
jl 0x5a8fea
mov dword [esp + 0x60], edx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
jle 0x5a93d5
mov eax, dword [esp + 0x30]
add eax, 0x38
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x5a9014
xor ebp, ebp
jmp 0x5a901b
mov ebp, dword [esp + 0x4c]
add ebp, 1
cmp ebp, 1
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], ebp
mov dword [esi - 0xc], ebp
je 0x5a9034
cmp ebp, 3
je 0x5a9034
xor eax, eax
jmp 0x5a9039
mov eax, 1
cmp ebp, 2
je 0x5a904b
cmp ebp, 3
mov dword [esp + 0x28], 0
jne 0x5a9053
mov dword [esp + 0x28], 1
test ebp, ebp
jne 0x5a9091
mov edx, dword [esp + 0x38]
mov ecx, dword [edx]
mov eax, dword [esp + 0x80]
lea ebx, [eax + ecx - 1]
mov ecx, dword [esp + 0x84]
sar ebx, cl
mov dword [esi - 0x1c], ebx
mov ebx, dword [edx + 4]
lea ebx, [eax + ebx - 1]
sar ebx, cl
mov dword [esi - 0x18], ebx
mov ebx, dword [edx + 8]
lea ebx, [ebx + eax - 1]
sar ebx, cl
mov dword [esi - 0x14], ebx
mov edx, dword [edx + 0xc]
jmp 0x5a9102
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
imul eax, ebx
mov edi, dword [esp + 0x38]
mov ebp, dword [edi]
add ecx, 1
mov edx, 1
shl edx, cl
sub edx, eax
lea edx, [edx + ebp - 1]
sar edx, cl
mov dword [esi - 0x1c], edx
mov edx, dword [esp + 0x28]
mov ebp, dword [edi + 4]
imul edx, ebx
mov ebx, 1
shl ebx, cl
sub ebx, edx
lea ebx, [ebx + ebp - 1]
sar ebx, cl
mov ebp, dword [esp + 0x20]
mov dword [esi - 0x18], ebx
mov ebx, 1
shl ebx, cl
sub ebx, eax
mov eax, dword [edi + 8]
lea eax, [ebx + eax - 1]
sar eax, cl
mov dword [esi - 0x14], eax
mov eax, 1
shl eax, cl
sub eax, edx
mov edx, dword [edi + 0xc]
mov edi, dword [esp + 0x24]
lea eax, [eax + edx - 1]
sar eax, cl
test edi, edi
mov dword [esi - 0x10], eax
je 0x5a911a
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + edi*2]
lea edi, [edi + edx - 2]
mov ebx, dword [esp + 0x3c]
cmp dword [ebx + 0x14], 0
push ebp
jne 0x5a912c
call fcn.0048a350
jmp 0x5a9131
call fcn.005ac1e0
mov ecx, dword [esp + 0xa8]
fld qword [0x5fdc90]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + edx + 0x18]
sub edx, dword [ebx + edi*8 + 0x1c]
add esp, 4
add edx, eax
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
call fcn.005b90c0
fild dword [ebx + edi*8 + 0x20]
fmul qword [0x6495c0]
fadd qword [0x659f48]
fmulp st(1)
fstp dword [esi]
mov eax, dword [ebx + edi*8 + 0x1c]
mov ecx, dword [ebx + 0x324]
mov edi, dword [esp + 0x30]
lea edx, [eax + ecx - 1]
mov dword [esi - 4], edx
mov eax, dword [edi + 0x14]
imul eax, dword [edi + 0x10]
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
push eax
call fcn.005a3520
mov dword [esi - 8], eax
mov ecx, dword [edi + 0x14]
imul ecx, dword [edi + 0x10]
add esp, 4
test ecx, ecx
mov dword [esp + 0x20], 0
jle 0x5a93b8
mov ecx, dword [esp + 0x78]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x94], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x98], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x7c], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x50], eax
jmp 0x5a9210
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x10]
mov eax, dword [esp + 0x20]
cdq
idiv ecx
mov esi, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x44]
imul eax, esi
imul edx, ecx
add eax, dword [esp + 0x74]
add edx, dword [esp + 0x88]
lea edi, [esi + eax]
mov esi, dword [ebx - 8]
add esi, dword [esp + 0x28]
lea ebp, [ecx + edx]
mov ecx, dword [ebx - 0x1c]
cmp edx, ecx
jg 0x5a9257
mov edx, ecx
mov dword [esi], edx
mov ecx, dword [ebx - 0x18]
cmp eax, ecx
jg 0x5a9262
mov eax, ecx
mov dword [esi + 4], eax
mov ecx, dword [ebx - 0x14]
cmp ebp, ecx
mov dword [esp + 0x14], ebp
jl 0x5a9274
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
mov ebx, dword [ebx - 0x10]
cmp edi, ebx
jl 0x5a9284
mov edi, ebx
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, ebp
sar edx, cl
mov dword [esi + 0xc], edi
shl edx, cl
mov ecx, ebx
sar eax, cl
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x7c]
shl eax, cl
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
lea edx, [edx + eax - 1]
sar edx, cl
shl edx, cl
sub edx, dword [esp + 0x6c]
sar edx, cl
mov ecx, dword [esp + 0x50]
lea eax, [ecx + edi - 1]
mov ecx, ebx
sar eax, cl
mov dword [esi + 0x10], edx
shl eax, cl
sub eax, dword [esp + 0x1c]
sar eax, cl
mov dword [esi + 0x14], eax
imul eax, edx
imul eax, eax, 0x3c58
push eax
call fcn.005a3520
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.005ac910
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov dword [esi + 0x1c], eax
call fcn.005ac910
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
add esp, 0x14
xor ebx, ebx
test eax, eax
jle 0x5a9395
mov dword [esp + 0x14], ebx
nop
mov ecx, dword [esi + 0x10]
mov eax, ebx
cdq
idiv ecx
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esi]
imul eax, ecx
imul edx, ebp
add eax, dword [esp + 0x1c]
add edx, dword [esp + 0x6c]
add ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x18]
add ecx, dword [esp + 0x14]
add ebp, edx
cmp edx, edi
jg 0x5a9355
mov edx, edi
mov dword [ecx], edx
mov edx, dword [esi + 4]
cmp eax, edx
jg 0x5a9360
mov eax, edx
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
cmp ebp, eax
jge 0x5a936c
mov eax, ebp
mov edx, dword [esp + 0x68]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
cmp edx, eax
jge 0x5a937c
mov eax, edx
add dword [esp + 0x14], 0x3c58
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x14]
imul ecx, dword [esi + 0x10]
add ebx, 1
cmp ebx, ecx
jl 0x5a9320
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
imul edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], 0x24
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x5a9210
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x44], 0x20
add eax, 1
cmp eax, dword [ecx + 0x18]
mov dword [esp + 0x4c], eax
jl 0x5a9008
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
add eax, 1
cmp eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
jl 0x5a8ea0
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0x70]
add dword [esp + 0x58], 0x434
add dword [esp + 0x54], 0x20
add eax, 1
add ebp, 0x30
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x70], eax
mov dword [esp + 0x10], ebp
jl 0x5a8df0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
add eax, 1
cmp eax, dword [ecx + 0x38]
mov dword [esp + 0x18], eax
jl 0x5a8d21
xor ebp, ebp
cmp dword [ebx + 0x10], ebp
mov dword [esp + 0x18], ebp
jle 0x5a9570
mov edi, edi
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0x38]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x68], edx
jle 0x5a950c
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 4]
mov esi, dword [edx + 8]
mov edx, dword [esp + 0x18]
shl edx, 5
jmp 0x5a9490
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + ecx*4]
imul eax, eax, 0x348
test ecx, ecx
jne 0x5a94c1
mov eax, dword [eax + esi + 0x14]
mov edi, dword [eax + edx]
add eax, edx
mov dword [esp + 0x34], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x2c], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], edi
jmp 0x5a94fb
mov ecx, dword [eax + esi + 0x14]
lea eax, [ecx + edx]
mov ecx, dword [eax]
cmp dword [esp + 0x34], ecx
jl 0x5a94d4
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 4]
cmp dword [esp + 0x2c], ecx
jl 0x5a94e1
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
cmp dword [esp + 0x40], ecx
jg 0x5a94ee
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0xc]
cmp dword [esp + 0x48], eax
mov ecx, dword [esp + 0x10]
jg 0x5a94ff
mov dword [esp + 0x48], eax
add ecx, 1
cmp ecx, dword [esp + 0x68]
mov dword [esp + 0x10], ecx
jl 0x5a9490
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
sub edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x34]
mov ecx, edi
imul ecx, esi
add ecx, ecx
add ecx, ecx
push ecx
call fcn.005a3520
mov edx, dword [ebx + 0x18]
mov dword [edx + ebp + 0x2c], eax
mov eax, dword [ebx + 0x18]
mov dword [eax + ebp + 8], esi
mov ecx, dword [ebx + 0x18]
mov eax, dword [esp + 0x38]
mov dword [ecx + ebp + 0xc], edi
mov edx, dword [ebx + 0x18]
mov dword [edx + ebp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x30]
mov dword [ecx + ebp + 0x14], edx
add eax, 1
add esp, 4
add ebp, 0x30
cmp eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
jl 0x5a9450
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret