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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba3ff
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x644a10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov edi, 1
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CTcpServer.0
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0x2710
call fcn.00451440
push ebx
push edi
mov dword [esi + 0x14], eax
mov ecx, 0x4e20
mov eax, 0x258
mov edx, 0x400
push edi
push ebx
mov dword [esi + 0x18], Ordinal_1
mov dword [esi + 0x1c], 0x12c
mov dword [esi + 0x20], 0x1000
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], 0xea60
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 0x44], eax
cmp ecx, ebx
jne 0x42d927
push 0x80004005
call fcn.00423210
mov eax, dword [ebp + 8]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
xor edx, edx
mov word [esi + 0x54], dx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], 3
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
push ebx
push ebx
push 4
mov byte [ebp - 4], 2
mov dword [esi + 0x80], 4
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 0x7c], eax
cmp ecx, ebx
jne 0x42d995
push 0x80004005
call fcn.00423210
mov edx, dword [0x64589c]
push edx
push 0x400
push 0x400
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 3
call fcn.00425320
lea edi, [esi + 0x170]
mov dword [esi + 0x16c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x84], ebx
lea ecx, [edi + 0x104]
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
mov dword [edi + 0xc4], ebx
call fcn.004560a0
lea eax, [ebp + 0xb]
push eax
lea edx, [ebp - 0xe]
lea ecx, [edi + 0x11c]
push edx
mov byte [ebp - 4], 5
call fcn.0043fcb0
mov byte [ebp - 4], 6
cmp dword [edi + 4], ebx
je 0x42da3d
lea ecx, [edi + 0x11c]
call fcn.00460460
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [edi + 0x44]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov dword [edi + 4], ebx
mov dword [edi + 0x44], ebx
mov dword [edi], ebx
mov dword [edi + 0xc4], ebx
add esp, 8
mov dword [edi + 0x84], ebx
mov dword [esi + 0x2bc], ebx
mov eax, dword [esi + 0x2bc]
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x2fc], ebx
mov dword [esi + 0x33c], ebx
cmp eax, ebx
je 0x42da81
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x2fc], ebx
add esp, 4
mov dword [esi + 0x33c], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
push 8
mov byte [ebp - 4], 8
mov dword [esi + 0x38c], ebx
call sub.mfc100u.dll_new
add esp, 4
cmp eax, ebx
je 0x42daac
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x42daae
xor eax, eax
mov dword [esi + 0x388], eax
mov dword [esi + 0x384], eax
mov dword [esi + 0x390], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4