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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0xee37e4]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [ebp + 8]
push esi
push edi
lea esi, [ebp + 0x10]
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x48]
mov dword [esp + 0x10], eax
movsd dword es:[edi], dword [esi]
mov edx, eax
mov dword [esp + 0x20], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00582cad
mov ecx, dword [esp + 0x10]
imul edx, ebx, 0x220
mov ebx, dword [esp + 0x20]
push 6
imul edi, dword [ecx + 0x1f0], 0x220
mov eax, dword [ecx + 0x1e8]
add edx, eax
mov esi, edx
mov dword [esp + 0x1c], edx
pop ecx
add edi, eax
mov dword [esp + 0x14], edi
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [edi + 0x168]
call fcn.00536bbd
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [esi + 0x168]
call fcn.004e3d11
mov edx, dword [edi + 0x17c]
mov ecx, ebx
mov dword [edi + 0x168], eax
call fcn.004fdb8c
mov edx, dword [esi + 0x17c]
mov ecx, ebx
call fcn.004fdb59
mov edx, dword [edi + 0x1c]
mov ecx, ebx
mov dword [edi + 0x17c], eax
call fcn.0052cc1e
mov edx, dword [esi + 0x1c]
mov ecx, ebx
call fcn.0052cbbe
mov edx, dword [esp + 0x10]
mov ecx, ebx
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 0
je 0x582f2a
push 0
call fcn.00582bbc
mov edx, dword [esp + 0x14]
pop ecx
push 1
mov ecx, ebx
call fcn.00582bbc
cmp dword [ebp + 0x20], 0
lea esi, [edi + 0xbc]
pop ecx
mov dword [esp + 0x20], esi
jne 0x582efb
add edi, 0x20
mov ecx, ebx
mov edx, edi
call fcn.00582b93
mov edx, esi
mov ecx, ebx
call fcn.00582b60
jmp 0x582f1a
cmp dword [ebp + 0x20], 1
jne 0x582f23
mov edx, esi
mov ecx, ebx
call fcn.00582b93
lea esi, [edi + 0x20]
mov ecx, ebx
mov edx, esi
call fcn.00582b60
mov edi, dword [esp + 0x20]
push 0x27
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
and dword [esp + 0x20], 0
jmp 0x582f3e
push dword [ebp + 0x20]
call fcn.00582bbc
mov eax, dword [esp + 0x20]
pop ecx
mov eax, dword [eax + 0x48]
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0x17c]
test edx, edx
je 0x582f56
mov ecx, ebx
call fcn.004fdb8c
and dword [edi + 0x17c], 0
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x78]
sub esp, 0x18
push 6
pop edx
mov edi, esp
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
sub esp, 0x18
mov edi, esp
add esi, 0x14
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0050b33b
mov esi, eax
lea edi, [esp + 0x94]
mov ecx, edx
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
lea eax, [esp + 0x90]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0050b703
mov esi, eax
lea edi, [esp + 0xac]
mov ecx, edx
mov edx, dword [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x1f8]
lea edi, [esp + 0x94]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x1f0]
dec eax
imul ecx, eax, 0x220
mov dword [edx + 0x1f8], eax
mov eax, dword [edx + 0x1e8]
push 6
add eax, ecx
pop ecx
push 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
pop ecx
add esp, 4
lea esi, [esp + 0x78]
mov edi, eax
lea eax, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
push 6
pop ecx
mov edi, esp
lea esi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x70]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0050bf11
mov esi, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
lea edi, [esp + 0x64]
add esp, 0x2c
movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm3, dword [esp + 0x38]
subss xmm3, dword [ecx]
divss xmm3, dword [eax + 0xc]
movss dword [esp + 0x2c], xmm3
movss xmm4, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
movss xmm2, dword [esp + 0x44]
subss xmm4, dword [ecx]
subss xmm1, dword [eax + 0x30]
subss xmm2, dword [eax + 0x30]
divss xmm4, dword [eax + 0xc]
divss xmm1, dword [eax + 0x10]
comiss xmm3, xmm4
divss xmm2, dword [eax + 0x10]
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x30], xmm4
movss dword [esp + 0x34], xmm2
jbe 0x5830a7
invalid
invalid