Function at 0x4f3320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e201d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x34]
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov dword [ebp - 0x68], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
test ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x68]
je 0x4f349c
mov eax, dword [esi + 8]
push dword [eax + 4]
push dword [eax]
push dword [esi + 4]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x6c]
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.0050d670
add esp, 0x54
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4f345b
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x20]
push dword [eax + 4]
push dword [eax]
call fcn.004a6500
test al, al
jne 0x4f3450
mov eax, 0x5b4
jmp 0x4f3458
lea ecx, [ebp - 0x20]
call fcn.004f3f70
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4f34d7
or ecx, 0xffffffff
lock xadd dword [edi + 4], ecx
jne 0x4f34d7
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f2510]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4f3497
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5f2510]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x4f34d7
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push edx
push edi
push ecx
push dword [eax + 4]
call fcn.0052cf40
add esp, 0x4c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x48