Function at 0x580040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1e0
mov esi, esp
mov dword [esi + 0x1c8], ebp
mov dword [esi + 0x1cc], esp
mov dword [esi + 0x1d8], 0xffffffff
mov dword [esi + 0x1d4], 0x704cb0
mov edi, ecx
lea ecx, [esi + 0x1d0]
mov ebx, edx
mov eax, dword fs:[0]
mov dword [esi + 0x1d0], eax
mov dword fs:[0], ecx
mov ecx, edx
call fcn.00531d70
mov eax, dword [ebx + 0x100]
movzx ecx, byte [ebx + 0xbd]
mov dword [esi + 0x28], edi
movss xmm1, dword [eax + 0x74]
test ecx, ecx
je 0x5800bf
cmp ecx, 1
je 0x5800c1
cmp byte [ebx + 0xbc], 2
sete cl
jmp 0x5800c1
xor ecx, ecx
mov dword [esi + 0x10], 0x1000000
mov byte [esi + 0x14], 1
mov byte [esi + 0x15], cl
movss xmm2, dword [eax + 0x3c]
movss xmm3, dword [eax + 0x40]
sub esp, 4
lea ecx, [esi + 0x40]
mov edx, ebx
movss dword [esi + 0x2c], xmm3
movss dword [esp], xmm3
movss dword [esi + 0x30], xmm0
movss dword [esi + 8], xmm2
movss dword [esi + 0xc], xmm1
call fcn.00555a20
add esp, 4
movsd xmm0, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
lea edi, [esi + 0x60]
lea eax, [esi + 0xb8]
mov edx, ebx
mov ecx, edi
movsd qword [esi + 0xc0], xmm1
movsd qword [esi + 0xb8], xmm0
movss xmm0, dword [esi + 0x30]
movss xmm1, dword [esi + 0xc]
push eax
call fcn.00555f50
add esp, 4
lea eax, [esi + 0x10]
lea ecx, [esi + 0xb8]
mov dword [esi + 4], ebx
mov edx, ebx
push eax
push edi
call fcn.00530f60
add esp, 8
lea eax, [esi + 0xb8]
mov dword [esi + 0x1d8], 1
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0xc]
add esp, 8
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x58019d
cmp dword [eax + 8], 9
jae 0x580188
mov eax, dword [ebp + 8]
jmp 0x58018e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
movups xmm0, xmmword [esi + 0x140]
movss xmm1, dword [esi + 0x2c]
lea eax, [esi + 0x60]
mov dword [esi + 0x1d8], 0
lea edx, [esi + 0x18]
mov ecx, edi
movups xmmword [esi + 0x18], xmm0
movaps xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x60], xmm0
movss xmm0, dword [esi + 8]
push eax
call fcn.005565d0
add esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x100]
cmp byte [eax + 0x214], 0
je 0x58031a
movaps xmm3, xmmword [esi + 0x30]
movsd xmm0, qword [ecx + 0xd0]
movsd xmm4, qword [ecx + 0xd8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc4]
mov edx, dword [ecx + 0xc0]
mov edi, dword [ecx + 0xc8]
mov ecx, dword [ecx + 0xe0]
movaps xmm1, xmm3
movaps xmm2, xmm3
mov dword [esi + 0xc], eax
lea eax, [esi + 0x60]
maxps xmm1, xmm0
cmpunordps xmm0, xmm0
andps xmm2, xmm0
andnps xmm0, xmm1
movaps xmm1, xmm3
unpckhpd xmm1, xmm3
orps xmm0, xmm2
movaps xmm2, xmm1
movlps qword [esi + 0x60], xmm0
minps xmm2, xmm4
cmpunordps xmm4, xmm4
andps xmm1, xmm4
andnps xmm4, xmm2
orps xmm4, xmm1
movlps qword [esi + 0x68], xmm4
push eax
push edi
push dword [esi + 0xc]
call fcn.0051b510
add esp, 0xc
test al, al
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
je 0x58031a
lea edx, [ecx + 0xe0]
lea ecx, [esi + 0x60]
call fcn.0051b720
movsd xmm0, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
mov dword [esi + 0x1d8], 2
lea ecx, [esi + 0x60]
lea edx, [esi + 0x18]
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
push 0xffe6d8ad
push 0x3f800000
call fcn.00587320
add esp, 8
movaps xmm0, xmmword [esi + 0x30]
lea ecx, [esi + 0x60]
lea edx, [esi + 0x18]
movups xmmword [esi + 0x18], xmm0
push 0xffe6d8ad
push 0x3f800000
call fcn.00587320
add esp, 8
mov ecx, dword [esi + 4]
lea edx, [esi + 0x60]
call fcn.00583490
mov eax, dword [esi + 0x80]
lock dec dword [eax]
mov ebx, dword [esi + 4]
jne 0x580308
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x1d8], 0
call fcn.0057ee90
mov ebx, dword [esi + 4]
mov eax, dword [ebx + 0x100]
mov ecx, ebx
mov dword [esi + 0x1d8], 0
movsd xmm0, qword [ecx + 0xd0]
movsd xmm1, qword [ecx + 0xd8]
movzx edi, byte [ecx + 0x108]
movaps xmm2, xmmword [esi + 0x30]
mov ebx, dword [esi + 0x1ac]
lea edx, [ecx + 0xe0]
movsd qword [esi + 0x58], xmm1
movsd qword [esi + 0x50], xmm0
movss xmm0, dword [eax + 0x3c]
movss xmm1, dword [eax + 0x40]
mov eax, dword [ecx + 0xc0]
movups xmmword [esi + 0x18], xmm2
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0xc4]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc8]
lea ecx, [esi + 0x60]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1a8]
push edi
push 0
lea edi, [esi + 0x18]
push edi
push ebx
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [esi + 0xc]
lea eax, [esi + 0x50]
push eax
call fcn.00519df0
add esp, 0x24
push 0x58
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x28]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esi + 0xb8]
mov dword [esi + 0x1d8], 0xffffffff
call fcn.0056ffc0
mov eax, dword [esi + 0x1d0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret