Function at 0x585cf0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x240
mov esi, esp
mov dword [esi + 0x228], ebp
mov dword [esi + 0x22c], esp
mov dword [esi + 0x238], 0xffffffff
mov dword [esi + 0x234], 0x704e00
mov edi, edx
lea eax, [esi + 0x230]
movss dword [esi + 0x4c], xmm0
movss dword [esi + 0x50], xmm1
mov dword [esi + 0xc], ecx
mov edx, dword fs:[0]
lea ebx, [edi + 0xb8]
mov dword [esi + 0x230], edx
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
movss xmm0, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x48], edx
lea ecx, [esi + 0x118]
orpd xmm0, xmmword [0x7259c0]
subsd xmm0, qword [0x725628]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [edx]
mov edx, ebx
subss xmm1, dword [eax]
lea eax, [edi + 0x88]
mov dword [esi + 0x60], eax
maxss xmm1, xmm0
movss dword [esi + 4], xmm1
push eax
call fcn.0054ba30
add esp, 4
movss xmm4, dword [esi + 0x11c]
movss xmm7, dword [edi + 0x8c]
movss xmm2, dword [edi + 0x94]
movss xmm3, dword [edi + 0x9c]
mov edx, ebx
lea ecx, [esi + 0x118]
mov dword [esi + 0x54], ebx
movaps xmm1, xmm4
minss xmm1, xmm7
cmpunordss xmm7, xmm7
movaps xmm0, xmm7
andnps xmm7, xmm1
andps xmm0, xmm4
orps xmm7, xmm0
movaps xmm0, xmm4
maxss xmm0, xmm2
cmpunordss xmm2, xmm2
movaps xmm1, xmm2
andnps xmm2, xmm0
movaps xmm0, xmm4
andps xmm1, xmm4
minss xmm0, xmm3
cmpunordss xmm3, xmm3
orps xmm2, xmm1
movaps xmm1, xmm3
andnps xmm3, xmm0
movaps xmm0, xmm4
movaps xmmword [esi + 0x20], xmm2
movss xmm2, dword [edi + 0xa4]
andps xmm1, xmm4
orps xmm3, xmm1
maxss xmm0, xmm2
cmpunordss xmm2, xmm2
movaps xmm1, xmm2
andnps xmm2, xmm0
movaps xmm0, xmm4
andps xmm1, xmm4
orps xmm2, xmm1
movss xmm1, dword [edi + 0xac]
minss xmm0, xmm1
cmpunordss xmm1, xmm1
movaps xmm5, xmm1
andnps xmm1, xmm0
andps xmm5, xmm4
orps xmm1, xmm5
movss xmm5, dword [edi + 0xb4]
movaps xmm0, xmm5
cmpunordss xmm0, xmm5
movaps xmm6, xmm0
andps xmm6, xmm4
maxss xmm4, xmm5
andnps xmm0, xmm4
movss xmm4, dword [esi + 0x124]
orps xmm0, xmm6
movaps xmm5, xmm4
minss xmm5, xmm7
cmpunordss xmm7, xmm7
movaps xmm6, xmm7
andps xmm7, xmm4
andnps xmm6, xmm5
movaps xmm5, xmm4
orps xmm7, xmm6
movaps xmmword [esi + 0x30], xmm7
movaps xmm7, xmmword [esi + 0x20]
maxss xmm5, xmm7
cmpunordss xmm7, xmm7
movaps xmm6, xmm7
andps xmm7, xmm4
andnps xmm6, xmm5
movaps xmm5, xmm4
minss xmm5, xmm3
cmpunordss xmm3, xmm3
orps xmm7, xmm6
movaps xmm6, xmm3
andps xmm3, xmm4
movaps xmmword [esi + 0x20], xmm7
andnps xmm6, xmm5
movaps xmm5, xmmword [esi + 0x30]
orps xmm3, xmm6
movss dword [edi + 0x8c], xmm5
movss dword [edi + 0x94], xmm7
movss dword [edi + 0x9c], xmm3
movaps xmm3, xmm4
maxss xmm3, xmm2
cmpunordss xmm2, xmm2
movaps xmm5, xmm2
andps xmm2, xmm4
andnps xmm5, xmm3
orps xmm2, xmm5
movss dword [edi + 0xa4], xmm2
movaps xmm2, xmm4
minss xmm2, xmm1
cmpunordss xmm1, xmm1
movaps xmm3, xmm1
andps xmm1, xmm4
andnps xmm3, xmm2
orps xmm1, xmm3
movss dword [edi + 0xac], xmm1
movaps xmm1, xmm4
maxss xmm1, xmm0
cmpunordss xmm0, xmm0
movaps xmm2, xmm0
andps xmm0, xmm4
andnps xmm2, xmm1
movss xmm1, dword [esi + 4]
orps xmm0, xmm2
movss dword [edi + 0xb4], xmm0
xorps xmm0, xmm0
push dword [esi + 0x60]
call fcn.0054ba30
add esp, 4
movups xmm2, xmmword [edi + 0x98]
movss xmm3, dword [esi + 0x11c]
movups xmm1, xmmword [edi + 0x88]
movups xmm0, xmmword [edi + 0x90]
mov eax, dword [esi + 0x48]
mov dword [esi + 4], edi
movlhps xmm3, xmm2
shufps xmm3, xmm2, 0xe2
movaps xmm2, xmmword [esi + 0x30]
movlhps xmm2, xmm1
shufps xmm2, xmm1, 0xe2
movaps xmm1, xmm2
minps xmm1, xmm3
cmpunordps xmm3, xmm3
andps xmm2, xmm3
andnps xmm3, xmm1
orps xmm3, xmm2
movlps qword [edi + 0x98], xmm3
pshufd xmm2, xmm3, 0x55
movaps xmmword [esi + 0x60], xmm3
movss xmm3, dword [esi + 0x124]
movups xmm1, xmmword [edi + 0xa0]
movdqa xmmword [esi + 0x100], xmm2
movlhps xmm3, xmm1
shufps xmm3, xmm1, 0xe2
movaps xmm1, xmmword [esi + 0x20]
movlhps xmm1, xmm0
shufps xmm1, xmm0, 0xe2
movaps xmm0, xmm1
maxps xmm0, xmm3
cmpunordps xmm3, xmm3
andps xmm1, xmm3
andnps xmm3, xmm0
orps xmm3, xmm1
pshufd xmm0, xmm3, 0x55
movlpd qword [edi + 0xa0], xmm3
movd dword [edi + 0xac], xmm2
movaps xmmword [esi + 0xf0], xmm3
movd dword [edi + 0xb4], xmm0
movss xmm0, dword [esi + 0x4c]
movss xmm1, dword [eax]
divss xmm0, xmm1
movss dword [esi + 0x30], xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
add esp, 8
fstp dword [esi + 0x58]
mov edi, 0xffffffff
movss xmm0, dword [esi + 0x58]
movaps xmm1, xmm0
cvttss2si ecx, xmm0
subss xmm1, dword [0x7255a4]
mov ebx, ecx
sar ebx, 0x1f
cvttss2si eax, xmm1
xorps xmm1, xmm1
and ebx, eax
xor eax, eax
or ebx, ecx
ucomiss xmm0, xmm1
cmovb ebx, eax
ucomiss xmm0, dword [0x725624]
movss xmm0, dword [esi + 0x50]
divss xmm0, dword [esi + 0x30]
cmova ebx, edi
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [esi + 0x5c]
movss xmm0, dword [esi + 0x5c]
movaps xmm1, xmm0
cvttss2si ecx, xmm0
subss xmm1, dword [0x7255a4]
mov eax, ecx
sar eax, 0x1f
cvttss2si edx, xmm1
xorps xmm1, xmm1
and eax, edx
xor edx, edx
or eax, ecx
ucomiss xmm0, xmm1
mov ecx, dword [esi + 8]
cmovb eax, edx
ucomiss xmm0, dword [0x725624]
cmova eax, edi
mov edi, dword [ecx]
inc eax
cmp eax, edi
jbe 0x5860f3
sub eax, ebx
mov ebx, edi
cmovb eax, edx
sub ebx, eax
cmovb ebx, edx
jmp 0x5860f5
mov edi, eax
mov eax, dword [esi + 0xc]
movq xmm1, qword [0x725628]
movd xmm2, edi
movd xmm0, ebx
movss xmm4, dword [esi + 0x30]
movaps xmm3, xmmword [esi + 0x100]
mov edx, dword [esi + 4]
mov ecx, dword [eax + 0xc]
por xmm2, xmm1
por xmm0, xmm1
subsd xmm2, xmm1
subsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm2
movaps xmm2, xmmword [esi + 0x60]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm4
mulss xmm1, xmm4
mov dword [esi + 0x20], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
addss xmm0, xmm3
addss xmm1, xmm3
movss dword [esi + 0x88], xmm2
movss dword [esi + 0x8c], xmm0
movaps xmm0, xmmword [esi + 0xf0]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x54]
mov dword [esi + 0xc], eax
movss dword [esi + 0x90], xmm0
movss dword [esi + 0x94], xmm1
movzx eax, word [ecx + 4]
mov word [esi + 0x14], ax
mov eax, dword [ecx]
lea ecx, [esi + 0x118]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x88]
push eax
call fcn.00530f60
mov ecx, dword [esi + 0x20]
add esp, 8
add dword [esi + 0x210], ebx
adc dword [esi + 0x214], 0
cmp edi, ebx
jbe 0x586386
xor eax, eax
sub edi, ebx
cmovb edi, eax
test ebx, ebx
je 0x5861e0
mov eax, dword [esi + 8]
sub eax, ecx
shr eax, 2
cmp eax, ebx
jbe 0x586386
lea ecx, [ecx + ebx*4]
jmp 0x5861e9
cmp ecx, dword [esi + 8]
je 0x586386
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov edi, dword [ecx]
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x586214
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x5864bf
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x5864bf
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x118]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [esi + 0x238], 0
lea ecx, [esi + 0x88]
push 0x743474
push eax
call fcn.00580040
add esp, 8
mov eax, dword [esi + 0xbc]
lock dec dword [eax]
jne 0x586269
mov ecx, dword [esi + 0xbc]
call fcn.0057ee90
movss xmm0, dword [0x7259dc]
lea eax, [esi + 0x118]
lea ecx, [esi + 0x88]
lea edx, [esi + 0x10]
movlps qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 2
push eax
call fcn.00558f10
add esp, 4
mov eax, dword [esi + 0xbc]
lock dec dword [eax]
jne 0x5862b0
mov ecx, dword [esi + 0xbc]
call fcn.0057ee90
nop word [eax + eax]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
dec eax
je 0x586386
add ecx, 4
cmp ecx, dword [esi + 8]
je 0x586386
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], ecx
mov edi, dword [ecx]
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x5862f4
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x5864bf
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x5864bf
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x118]
mov dword [eax], ecx
mov dword [eax + 4], edi
lea ecx, [esi + 0x88]
push 0x743474
push eax
call fcn.00580040
add esp, 8
mov eax, dword [esi + 0xbc]
lock dec dword [eax]
jne 0x58633f
mov ecx, dword [esi + 0xbc]
call fcn.0057ee90
movss xmm0, dword [0x7259dc]
lea eax, [esi + 0x118]
lea ecx, [esi + 0x88]
lea edx, [esi + 0x10]
movlps qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 2
push eax
call fcn.00558f10
add esp, 4
mov eax, dword [esi + 0xbc]
lock dec dword [eax]
jne 0x5862b0
mov ecx, dword [esi + 0xbc]
call fcn.0057ee90
jmp 0x5862b0
mov ecx, dword [esi + 4]
movsd xmm0, qword [esi + 0x1a0]
movsd xmm1, qword [esi + 0x1a8]
lea edx, [esi + 0x10]
mov eax, dword [ecx + 0x100]
movsd qword [esi + 0x80], xmm1
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0x18], xmm1
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 0x90], xmm1
movsd qword [esi + 0x88], xmm0
movss xmm0, dword [eax + 0x3c]
movss xmm1, dword [eax + 0x40]
lea eax, [esi + 0x88]
mov dword [esi + 0x238], 0
push eax
call fcn.005565d0
add esp, 4
mov eax, dword [esi + 0x208]
movsd xmm0, qword [esi + 0x78]
movsd xmm1, qword [esi + 0x80]
mov ebx, dword [esi + 0x20c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
movsd qword [esi + 0x18], xmm1
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [eax + 0xd0]
movsd xmm1, qword [eax + 0xd8]
mov ecx, dword [eax + 0x100]
movzx edi, byte [eax + 0x108]
lea edx, [eax + 0xe0]
movsd qword [esi + 0xe8], xmm1
movsd qword [esi + 0xe0], xmm0
movss xmm0, dword [ecx + 0x3c]
movss xmm1, dword [ecx + 0x40]
lea ecx, [esi + 0x88]
push edi
push 0
lea edi, [esi + 0x10]
push edi
push ebx
push dword [esi + 0x20]
push dword [eax + 0xc8]
push dword [eax + 0xc4]
push dword [eax + 0xc0]
lea eax, [esi + 0xe0]
push eax
call fcn.00519df0
add esp, 0x24
mov edi, dword [esi + 0xbc]
lea ecx, [esi + 0x118]
mov dword [esi + 0x238], 0xffffffff
call fcn.0056ffc0
lock dec dword [edi]
jne 0x5864ab
mov ecx, edi
call fcn.0057ee90
mov eax, dword [esi + 0x230]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [esi + 0x238], 0
call fcn.00709d20
ud2