Function at 0x4ad780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4b8660
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x69b710]
mov eax, dword [eax]
cmp eax, 2
jae 0x4ad8be
mov esi, dword [0x69a154]
movzx eax, byte [esi + 8]
test al, al
je 0x4ad8be
movzx ecx, al
mov dword [ebp - 0x20], edx
cmp ecx, 1
je 0x4ad807
cmp ecx, 2
jne 0x4ad7e6
mov al, 2
jmp 0x4ad807
mov dword [ebp - 0x10], 0
push esi
call fcn.0059e2f0
add esp, 4
mov edx, dword [ebp - 0x20]
mov esi, dword [0x69a154]
test al, al
je 0x4ad8be
mov ecx, dword [esi]
movzx eax, al
mov dword [ebp - 0x10], 0
push eax
push ecx
call fcn.005313d0
add esp, 8
test al, al
mov edx, dword [ebp - 0x20]
mov eax, dword [0x69a154]
je 0x4ad8be
mov eax, dword [eax]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4ada57
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea edi, [ebp - 0x58]
mov dword [ebp - 0x50], 0x60dc2c
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], edi
lea edi, [ebp - 0x50]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x84], esi
lea esi, [ebp + 8]
mov dword [ebp - 0x80], edx
movlps qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x58], esi
lea esi, [ebp - 0x84]
mov dword [ebp - 0x54], 0x421fa0
mov dword [ebp - 0x64], esi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 0x60d714
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.00531b00
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp byte [eax + 8], 2
je 0x4ad909
mov ecx, dword [edx]
test ecx, ecx
jne 0x4ad8e2
jmp 0x4ad909
pause
mov eax, dword [ecx + 4]
nop word cs:[eax + eax]
nop
cmp eax, 0xffffffff
je 0x4ad8e0
test eax, eax
js 0x4ada27
lea edx, [eax + 1]
lock cmpxchg dword [ecx + 4], edx
jne 0x4ad8f0
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
movzx eax, byte [edi]
test eax, eax
je 0x4ad930
cmp eax, 1
jne 0x4ad939
movzx eax, byte [edi + 1]
mov dword [ebp - 0x10], 2
mov byte [ebp - 0x21], al
mov al, 1
mov dword [ebp - 0x30], eax
jmp 0x4ad99b
mov dword [ebp - 0x30], 0
jmp 0x4ad99b
mov dword [ebp - 0x34], edi
mov esi, dword [edi + 4]
movzx eax, byte [0x69b8b9]
push 4
push 0x10
call fcn.00407070
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4ada3c
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esi, 0xc
lea edi, [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x10], 3
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
movsd xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x48]
mov edi, dword [ebp - 0x34]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov al, 2
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
add edi, 0x14
lea esi, [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x10], 2
push edx
push ecx
push edi
push esi
call eax
add esp, 0x10
mov ecx, dword [ebp + 0xc]
movsd xmm0, qword [ebp - 0x50]
mov edx, dword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x48]
movzx ebx, byte [ebp - 0x21]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + 0x18]
movsd qword [edx + 0x10], xmm1
movsd qword [edx + 8], xmm0
movsd xmm0, qword [ecx + 0x10]
movsd xmm1, qword [ecx]
movsd xmm2, qword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x30]
movsd qword [edx + 0x28], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
mov byte [edx + 0x38], 1
mov byte [edx], al
mov byte [edx + 1], bl
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0x34], esi
mov dword fs:[0], ecx
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 1
call fcn.0059c190
jmp 0x4ada6b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], eax
push 0x10
push 4
call fcn.005a08c0
add esp, 8
jmp 0x4ada6b
push 0x60dc00
push 0x22
push 0x60d6c8
call fcn.005a0a40
add esp, 0xc
ud2