Function at 0x49b884
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], 0x49ef80
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 0x49b974
cmp word [eax + 2], 0
je 0x49b953
cmp word [eax + 4], 0
je 0x49b958
cmp word [eax + 6], 0
je 0x49b95d
cmp word [eax + 8], 0
je 0x49b962
cmp word [eax + 0xa], 0
je 0x49b967
cmp word [eax + 0xc], 0
je 0x49b96c
cmp word [eax + 0xe], 0
je 0x49b971
add edi, 0xfffffff8
add eax, 0x10
cmp edi, 7
ja 0x49b8ce
cmp word [ebx], 0
je 0x49b976
mov edi, dword [ebp + 8]
cmp word [edi + 0x232], 0
je 0x49baa5
cmp word [edi + 0x234], 0
je 0x49bab0
cmp word [edi + 0x236], 0
mov eax, 0x104
jne 0x49b988
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x236]
jmp 0x49b976
add eax, 2
jmp 0x49b974
add eax, 4
jmp 0x49b974
add eax, 6
jmp 0x49b974
add eax, 8
jmp 0x49b974
add eax, 0xa
jmp 0x49b974
add eax, 0xc
jmp 0x49b974
add eax, 0xe
mov ebx, eax
sub ebx, edx
mov eax, ebx
shr eax, 1
cmp ebx, 0x20a
jae 0x49babb
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x24], ecx
mov ecx, edi
push eax
call fcn.0047cbd0
pop eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x49b9d1
js 0x49bacc
mov al, byte [0x50c430]
xor ecx, ecx
mov edx, esi
call fcn.00484920
mov edi, eax
test eax, eax
jne 0x49b9d4
and dword [ebp - 0x10], 0
xor ecx, ecx
mov edx, esi
inc ecx
call fcn.0049ff70
jmp 0x49bad5
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.00481290
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 0x49ba2c
mov ecx, dword [ebp - 0x20]
xor edx, edx
inc edx
call fcn.0040a630
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 0x49b976
lea ebx, [edi + 0x234]
jmp 0x49b976
mov ecx, eax
mov edx, 0x104
push 0x4e0978
call fcn.004a02f0
and dword [ebp - 0x10], 0
call fcn.0040a720
ud2