Function at 0x422a50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4929
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4c8104]
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 dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xe8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0xf0], esi
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
call fcn.0040d4a0
lea eax, [esi + 0x200]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xb0]
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
call fcn.0040d4a0
mov eax, dword [esi + 0x190]
mov byte [ebp - 0x8b], 1
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x7c], eax
mov eax, ecx
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
call fcn.0040d4a0
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov al, byte [ebp - 0x8b]
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x4b], al
add esp, 0xc
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x8b], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.0040d4a0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
push 0x58
call fcn.0042ae70
add esp, 8
mov esi, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x427c40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov cl, byte [ebp - 0x4b]
mov byte [esi + 0x21], cl
lea ecx, [esi + 0x34]
mov eax, dword [ebp - 0x48]
mov byte [ebp - 0x4b], 0
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.0040d4a0
push ecx
push esi
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0042acf0
lea ecx, [ebp - 0x44]
call fcn.00417100
lea ecx, [ebp - 0x84]
call fcn.00417100
lea ecx, [ebp - 0xbc]
call fcn.00417100
lea ecx, [ebp - 0xf0]
call fcn.00417100
mov byte [ebp - 4], 6
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x422cc2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x422cc2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x422cc2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x422cf2
mov edx, dword [ebp + 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x422ce8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422d0f
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
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.0049f3c4
mov esp, ebp
pop ebp
ret 0x2c
call fcn.004980a0
int3