Function at 0x520b0d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov edi, dword [ebp + 8]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5242f0
mov edx, dword fs:[0]
lea ebx, [edi + 0x230]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x2c], edx
lea edx, [edi + 0x30]
mov edi, 0x104
mov eax, edx
cmp word [eax], 0
je 0x520bfd
cmp word [eax + 2], 0
je 0x520bdc
cmp word [eax + 4], 0
je 0x520be1
cmp word [eax + 6], 0
je 0x520be6
cmp word [eax + 8], 0
je 0x520beb
cmp word [eax + 0xa], 0
je 0x520bf0
cmp word [eax + 0xc], 0
je 0x520bf5
cmp word [eax + 0xe], 0
je 0x520bfa
add edi, 0xfffffff8
add eax, 0x10
cmp edi, 7
ja 0x520b57
cmp word [ebx], 0
je 0x520bff
mov edi, dword [ebp + 8]
cmp word [edi + 0x232], 0
je 0x520d2f
cmp word [edi + 0x234], 0
je 0x520d3a
cmp word [edi + 0x236], 0
mov eax, 0x104
jne 0x520c11
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x236]
jmp 0x520bff
add eax, 2
jmp 0x520bfd
add eax, 4
jmp 0x520bfd
add eax, 6
jmp 0x520bfd
add eax, 8
jmp 0x520bfd
add eax, 0xa
jmp 0x520bfd
add eax, 0xc
jmp 0x520bfd
add eax, 0xe
mov ebx, eax
sub ebx, edx
mov eax, ebx
shr eax, 1
cmp ebx, 0x20a
jae 0x520d45
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x24], ecx
mov ecx, edi
push eax
call fcn.00501830
pop eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x520c5b
js 0x520d56
mov al, byte [0x666470]
xor edx, edx
mov ecx, esi
inc edx
call fcn.00407420
mov edi, eax
test eax, eax
jne 0x520c5e
and dword [ebp - 0x10], 0
xor ecx, ecx
mov edx, esi
inc ecx
call fcn.0059eab0
jmp 0x520d5f
xor edi, edi
inc edi
push esi
push dword [ebp - 0x2c]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 1
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov byte [ecx + 0xc], 0
push ebx
call fcn.005074e0
pop eax
movsd xmm0, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
cmp dword [ebp - 0x5c], 0
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm0
je 0x520cb6
mov ecx, dword [ebp - 0x20]
xor edx, edx
inc edx
call fcn.00407480
movsd xmm1, qword [edi + 0x18]
mov ecx, dword [edi + 0x24]
mov ebx, dword [edi + 4]
mov edx, dword [edi + 0x28]
movups xmm0, xmmword [edi + 8]
mov eax, dword [edi + 0x20]
movsd xmm2, qword [ebp - 0x4c]
movsd qword [esi + 0x30], xmm1
mov dword [esi + 0x38], ecx
mov ecx, ebx
movsd xmm1, qword [ebp - 0x44]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
shl ecx, 0x15
sar ecx, 0x1f
and ecx, edx
mov dword [esi + 0x44], ecx
and dword [esi + 0x10], 0
and dword [esi + 0x18], 0
movups xmmword [esi + 0x20], xmm0
movsd qword [esi + 0x48], xmm2
movsd qword [esi + 0x50], xmm1
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 0
and dword [esi + 4], 0
and dword [esi], 0
mov dword fs:[0], ecx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [edi + 0x232]
jmp 0x520bff
lea ebx, [edi + 0x234]
jmp 0x520bff
mov ecx, eax
mov edx, 0x104
push 0x62a0a0
call fcn.0059eed0
and dword [ebp - 0x10], 0
call fcn.00415d70
ud2