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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea ecx, [ebx + 0x13ef]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, 0x335c49d5
imul ecx
mov dword [edi + 0x18], ebx
sar edx, 0xa
mov ecx, edx
mov dword [edi + 0x1c], esi
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
jge 0x59ece7
mov ecx, 1
mov eax, ebx
cdq
idiv ecx
lea ecx, [esi + 0x1b67]
mov dword [edi + 0x30], eax
mov eax, 0x255d1e11
imul ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
jge 0x59ed10
mov ecx, 1
mov eax, esi
xor esi, esi
cdq
idiv ecx
mov dword [esp + 0x14], esi
mov dword [edi + 0x34], eax
cmp dword [edi + 8], esi
jle 0x59ef57
mov eax, dword [edi + 4]
lea ebx, [esi + esi*8]
add ebx, ebx
mov dword [eax + ebx*8 + 0x24], 0
mov eax, dword [edi + 4]
mov dword [eax + ebx*8 + 0x28], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x30]
mov dword [ecx + ebx*8 + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [eax + ebx*8 + 0x30], 0
mov eax, dword [edi + 4]
mov dword [eax + ebx*8 + 0x34], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x34]
mov dword [ecx + ebx*8 + 0x38], eax
mov esi, dword [edi + 4]
mov ecx, dword [esi + ebx*8 + 0x3c]
mov eax, dword [esi + ebx*8 + 0x44]
mov dword [esp + 0xc], ecx
cmp ecx, eax
jl 0x59ed85
mov ecx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + ebx*8 + 0x4c]
cmp ecx, eax
jl 0x59ed91
mov dword [esp + 0xc], eax
mov eax, dword [esi + ebx*8 + 0x40]
mov ecx, dword [esi + ebx*8 + 0x48]
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x59eda7
mov eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + ebx*8 + 0x50]
cmp eax, ecx
jl 0x59edb3
mov dword [esp + 0x10], ecx
fild dword [esi + ebx*8 + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x60]
fild dword [esi + ebx*8 + 0x24]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x58]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x3c], eax
mov esi, dword [edi + 4]
fild dword [esi + ebx*8 + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x78]
fild dword [esi + ebx*8 + 0x24]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x70]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x40], eax
mov esi, dword [edi + 4]
fild dword [esi + ebx*8 + 0x30]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x60]
fild dword [esi + ebx*8 + 0x2c]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x58]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x44], eax
mov esi, dword [edi + 4]
fild dword [esi + ebx*8 + 0x30]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x78]
fild dword [esi + ebx*8 + 0x2c]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x70]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x48], eax
mov esi, dword [edi + 4]
fild dword [esi + ebx*8 + 0x38]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x60]
fild dword [esi + ebx*8 + 0x34]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x58]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x4c], eax
mov esi, dword [edi + 4]
fild dword [esi + ebx*8 + 0x38]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x78]
fild dword [esi + ebx*8 + 0x34]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esi + ebx*8 + 0x70]
faddp st(1)
call fcn.0052eaa0
mov dword [esi + ebx*8 + 0x50], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebx*8 + 0x44]
mov edx, dword [eax + ebx*8 + 0x3c]
cmp edx, ecx
jl 0x59eed5
mov edx, ecx
mov ecx, dword [eax + ebx*8 + 0x4c]
cmp edx, ecx
jl 0x59eedf
mov edx, ecx
mov esi, dword [eax + ebx*8 + 0x48]
mov ecx, dword [eax + ebx*8 + 0x40]
cmp ecx, esi
jl 0x59eeed
mov ecx, esi
mov esi, dword [eax + ebx*8 + 0x50]
cmp ecx, esi
jl 0x59eef7
mov ecx, esi
mov esi, dword [esp + 0x14]
cmp esi, 1
jne 0x59ef60
cmp dword [edi + 0x2c], 0x23bc
je 0x59ef6d
mov ebx, dword [esp + 0xc]
sub ebx, edx
mov edx, dword [esp + 0x10]
sub edx, ecx
lea ecx, [esi + esi*8]
add ecx, ecx
push esi
add dword [eax + ecx*8 + 0x3c], ebx
mov eax, dword [edi + 4]
add dword [eax + ecx*8 + 0x40], edx
mov eax, dword [edi + 4]
add dword [eax + ecx*8 + 0x44], ebx
mov eax, dword [edi + 4]
add dword [eax + ecx*8 + 0x48], edx
mov eax, dword [edi + 4]
add dword [eax + ecx*8 + 0x4c], ebx
mov eax, dword [edi + 4]
add dword [eax + ecx*8 + 0x50], edx
mov ecx, edi
call fcn.0059daa0
inc esi
mov dword [esp + 0x14], esi
cmp esi, dword [edi + 8]
jl 0x59ed27
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x59ef09
cmp dword [edi + 0x2c], 0x23bc
je 0x59ef09
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x30]
sub eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
sub eax, edx
add eax, dword [edi + 0x18]
mov edx, dword [esp + 0x10]
add ebx, eax
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x34]
sub eax, dword [esp + 0x20]
sub eax, ecx
add eax, dword [esp + 0x24]
add edx, eax
mov eax, dword [edi + 4]
jmp 0x59ef15