Function at 0x485990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648ed6
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 1
push 0x48
movq qword [ebx], xmm0
call fcn.0060220e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 2
call fcn.00619cc0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cdq
push 0
push 0xf4240
push edx
push eax
call fcn.00602f10
push ecx
mov dword [ebp - 0x28], eax
mov ecx, esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
push eax
push dword [edi + 0x7c]
call fcn.0048bb00
mov byte [ebp - 4], 1
mov ecx, ebx
push dword [ebp - 0x38]
mov dword [ebx], 0
push eax
mov dword [ebx + 4], 0
call fcn.00494820
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 1
push eax
mov ecx, edi
mov dword [ebp - 0x14], 0x487dd0
call fcn.00487f20
push ecx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
push ecx
push ebx
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xd8]
call fcn.0048bbc0
mov ecx, dword [edi + 0x80]
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, dword [ecx]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0048e710
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x18], 3
call fcn.00485550
mov byte [ebp - 4], 5
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edi, [eax + 0x28]
lea ebx, [eax + 8]
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x90]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x88]
push eax
push 0xa0
call fcn.00475b10
mov esi, eax
mov dword [ebp - 0x2c], 0
add esp, 8
mov dword [ebp - 0x30], esi
push 0x4a4b40
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004765a0
lea ecx, [esi + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x90]
mov dword [ecx], eax
mov eax, dword [ebp - 0x8c]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
lea eax, [ebp - 0x80]
push eax
add ecx, 8
call fcn.0048e710
push edi
sub esp, 8
lea ecx, [esi + 0x80]
call fcn.004a5990
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + 0xc]
push esi
push eax
push ebx
lea eax, [ecx + 0x14]
mov byte [ebx + 8], 1
mov ecx, dword [ecx + 0x2c]
push eax
mov dword [ebp - 0x2c], esi
call fcn.004a9640
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.004a4ab0
lea ecx, [ebp - 0x80]
call fcn.00485550
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x485baa
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x485baa
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x485baa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x485bc2
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x30