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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae3b9
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4d5104]
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.0040d690
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.0040d690
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.0040d690
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.0040d690
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
push 0x58
call fcn.0042b1e0
add esp, 8
mov esi, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x427e30
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.0040d690
push ecx
push esi
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.0042b060
lea ecx, [ebp - 0x44]
call fcn.004172f0
lea ecx, [ebp - 0x84]
call fcn.004172f0
lea ecx, [ebp - 0xbc]
call fcn.004172f0
lea ecx, [ebp - 0xf0]
call fcn.004172f0
mov byte [ebp - 4], 6
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x422eb2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x422eb2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x422eb2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x422ee2
mov edx, dword [ebp + 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x422ed8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422eff
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.004a8e74
mov esp, ebp
pop ebp
ret 0x2c
call fcn.004a1b50
int3