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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x5829ad
call fcn.00580da0
mov eax, dword [esi + 8]
lea ecx, [eax*4 + 4]
push ecx
call fcn.005cde20
mov edx, dword [esi + 8]
add esp, 4
xor edi, edi
inc edx
test edx, edx
mov dword [esi + 0x64], eax
jle 0x5828e3
mov eax, dword [esi + 0xc]
inc eax
lea eax, [eax + eax*4]
shl eax, 4
push eax
call fcn.005cde20
mov ecx, dword [esi + 0x64]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 8]
inc edi
inc edx
cmp edi, edx
jl 0x5828c1
mov eax, dword [esi + 8]
lea ecx, [eax*4 + 4]
push ecx
call fcn.005cde20
mov edx, dword [esi + 8]
add esp, 4
xor edi, edi
inc edx
test edx, edx
mov dword [esi + 0x68], eax
jle 0x582925
mov eax, dword [esi + 0xc]
inc eax
lea eax, [eax + eax*4]
shl eax, 4
push eax
call fcn.005cde20
mov ecx, dword [esi + 0x68]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 8]
inc edi
inc edx
cmp edi, edx
jl 0x582903
mov eax, dword [esi + 8]
lea ecx, [eax*4 + 4]
push ecx
call fcn.005cde20
mov edx, dword [esi + 8]
add esp, 4
xor edi, edi
inc edx
test edx, edx
mov dword [esi + 0x6c], eax
jle 0x582967
mov eax, dword [esi + 0xc]
inc eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.005cde20
mov ecx, dword [esi + 0x6c]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 8]
inc edi
inc edx
cmp edi, edx
jl 0x582945
mov eax, dword [esi + 0x30]
imul eax, eax, 0x1c
push eax
call fcn.005cde20
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x2c]
shl eax, 5
push eax
call fcn.005cde20
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0xc]
add esp, 8
inc eax
lea edx, [eax + eax*4]
fld dword [ecx + edx*8]
mov eax, dword [esi + 8]
cmp eax, ebx
fsub dword [ecx]
mov dword [esp + 0x10], eax
fstp dword [esi + 0x10]
fld dword [ecx + 4]
fst dword [esi + 0x14]
jne 0x5829b7
fstp st(0)
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
fild dword [esp + 0x10]
mov ecx, dword [esi]
sub ecx, ebx
fdivr st(1)
fstp dword [esi + 0x18]
fstp st(0)
je 0x582b3b
dec ecx
jne 0x582c9a
cmp eax, ebx
mov dword [esi + 0x3c], 0x1f4
mov dword [esi + 0x40], 0x258
mov dword [esi + 0x44], 1
mov dword [esp + 0x10], ebx
jl 0x582a54
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jl 0x582a44
lea ebp, [ebx + ebx*4]
shl ebp, 3
nop
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + ebp + 0x24]
mov edx, dword [eax + ebp + 0x20]
push 0x2710
push ecx
mov ecx, dword [eax + ebp + 8]
add eax, ebp
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x3f000000
push edi
push ecx
mov ecx, esi
call fcn.00580e30
mov eax, dword [esi + 0xc]
inc ebx
add ebp, 0x28
inc edi
cmp edi, eax
jle 0x582a00
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x5829f0
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jl 0x582c9a
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jl 0x582b2a
xor ecx, ecx
xor ebp, ebp
xor eax, eax
cmp edi, eax
jne 0x582aa6
mov edx, dword [esi + 0x6c]
fld qword [0x6bb5f0]
mov edx, dword [edx]
fstp qword [edx + ecx + 0x10]
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [ecx + edx], eax
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [edx + ecx + 4], eax
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [edx + ecx + 8], eax
jmp 0x582b18
mov eax, dword [esi + 0x64]
lea edx, [eax + edi*4]
mov eax, dword [edx]
mov edx, dword [edx - 4]
fld dword [edx + ebp + 8]
lea eax, [eax + ebp + 8]
fsub dword [eax]
lea edx, [edx + ebp + 8]
fld dword [edx + 4]
fsub dword [eax + 4]
fld dword [edx + 8]
fsub dword [eax + 8]
mov eax, dword [esi + 0x6c]
mov eax, dword [eax + edi*4]
add eax, ecx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fxch st(1)
mov dword [eax + 8], edx
fstp dword [eax]
fstp dword [eax + 4]
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + edi*4]
fld dword [edx + ecx + 8]
lea eax, [edx + ecx]
fld dword [eax + 4]
fld dword [eax]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fmul dword [0x6bc9c8]
fstp qword [eax + 0x10]
mov eax, dword [esi + 0xc]
inc ebx
add ebp, 0x50
add ecx, 0x18
cmp ebx, eax
jle 0x582a72
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jle 0x582a61
jmp 0x582c9a
cmp eax, ebx
mov ecx, 0x258
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 2
mov dword [esp + 0x10], ebx
jl 0x582bb8
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jl 0x582ba8
lea ebp, [ebx + ebx*4]
shl ebp, 3
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + ebp + 0x24]
mov edx, dword [eax + ebp + 0x20]
push 0x2710
push ecx
mov ecx, dword [eax + ebp + 8]
add eax, ebp
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x3f000000
push edi
push ecx
mov ecx, esi
call fcn.00580e30
mov eax, dword [esi + 0xc]
inc ebx
add ebp, 0x28
inc edi
cmp edi, eax
jle 0x582b64
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x582b55
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jl 0x582c9a
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jl 0x582c8e
xor ecx, ecx
xor ebp, ebp
xor eax, eax
cmp edi, eax
jne 0x582c0a
mov edx, dword [esi + 0x6c]
fld qword [0x6bb5f0]
mov edx, dword [edx]
fstp qword [edx + ecx + 0x10]
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [ecx + edx], eax
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [edx + ecx + 4], eax
mov edx, dword [esi + 0x6c]
mov edx, dword [edx]
mov dword [edx + ecx + 8], eax
jmp 0x582c7c
mov eax, dword [esi + 0x64]
lea edx, [eax + edi*4]
mov eax, dword [edx]
mov edx, dword [edx - 4]
fld dword [edx + ebp + 8]
lea eax, [eax + ebp + 8]
fsub dword [eax]
lea edx, [edx + ebp + 8]
fld dword [edx + 4]
fsub dword [eax + 4]
fld dword [edx + 8]
fsub dword [eax + 8]
mov eax, dword [esi + 0x6c]
mov eax, dword [eax + edi*4]
add eax, ecx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fxch st(1)
mov dword [eax + 8], edx
fstp dword [eax]
fstp dword [eax + 4]
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + edi*4]
fld dword [edx + ecx + 8]
lea eax, [edx + ecx]
fld dword [eax + 4]
fld dword [eax]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fmul dword [0x6bca08]
fstp qword [eax + 0x10]
mov eax, dword [esi + 0xc]
inc ebx
add ebp, 0x50
add ecx, 0x18
cmp ebx, eax
jle 0x582bd6
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jle 0x582bc5
mov ecx, esi
call fcn.00581190
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
jl 0x582d81
mov edi, edi
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jl 0x582d75
xor eax, eax
nop
mov edx, dword [esi + 0x64]
mov edx, dword [edx + ecx*4]
mov ebp, dword [edx + eax + 8]
mov edi, dword [esi + 0x68]
mov edi, dword [edi + ecx*4]
mov dword [edi + eax + 8], ebp
mov ebp, dword [edx + eax + 0xc]
mov dword [edi + eax + 0xc], ebp
lea edx, [edx + eax + 8]
mov edx, dword [edx + 8]
mov dword [edi + eax + 0x10], edx
mov edx, dword [esi + 0x64]
mov edx, dword [edx + ecx*4]
mov ebp, dword [edx + eax + 0x14]
lea edi, [edi + eax + 8]
mov edi, dword [esi + 0x68]
mov edi, dword [edi + ecx*4]
mov dword [edi + eax + 0x14], ebp
mov ebp, dword [edx + eax + 0x18]
mov dword [edi + eax + 0x18], ebp
lea edx, [edx + eax + 0x14]
mov edx, dword [edx + 8]
mov dword [edi + eax + 0x1c], edx
mov edx, dword [esi + 0x64]
mov edx, dword [edx + ecx*4]
mov ebp, dword [edx + eax + 0x2c]
lea edi, [edi + eax + 0x14]
mov edi, dword [esi + 0x68]
mov edi, dword [edi + ecx*4]
mov dword [edi + eax + 0x2c], ebp
mov ebp, dword [edx + eax + 0x30]
lea edx, [edx + eax + 0x2c]
mov dword [edi + eax + 0x30], ebp
mov edx, dword [edx + 8]
lea edi, [edi + eax + 0x2c]
mov dword [edi + 8], edx
mov edx, dword [esi + 0x64]
mov edx, dword [edx + ecx*4]
mov edi, dword [esi + 0x68]
mov edi, dword [edi + ecx*4]
mov ebp, dword [edx + eax + 0x20]
lea edx, [edx + eax + 0x20]
lea edi, [edi + eax + 0x20]
mov dword [edi], ebp
mov ebp, dword [edx + 4]
mov dword [edi + 4], ebp
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov edx, dword [esi + 0xc]
inc ebx
add eax, 0x50
cmp ebx, edx
jle 0x582cc0
mov eax, dword [esi + 8]
inc ecx
cmp ecx, eax
jle 0x582cb0
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret