Function at 0x4774a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61af16
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6a8c7c]
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.005d585d
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 2
call fcn.005ed310
mov eax, dword [ebp + 0xc]
add esp, 0xc
cdq
push 0
push 0xf4240
push edx
push eax
call fcn.005d6560
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.0047ae20
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.00480790
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 1
push eax
mov ecx, edi
mov dword [ebp - 0x14], 0x478df0
call fcn.00478f30
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.0047aee0
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.0047ce30
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x18], 3
call fcn.00478d50
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.00470720
mov esi, eax
mov dword [ebp - 0x2c], 0
add esp, 8
mov dword [ebp - 0x30], esi
push 0x483b40
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00470f90
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.0047ce30
push edi
sub esp, 8
lea ecx, [esi + 0x80]
call fcn.00483e80
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.00484d50
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00483ab0
lea ecx, [ebp - 0x80]
call fcn.00478d50
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4776ba
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4776ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4776ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4776d2
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.005d584c
mov esp, ebp
pop ebp
ret 0x30