Function at 0x42fd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d1e8
push 0x437af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov byte [ebp - 0x1d], 0
push 2
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42fdf0
push 0x100000
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042f2f0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x45ded4]
test eax, eax
jne 0x42fe12
movzx ecx, byte [0x45ded5]
test ecx, ecx
jne 0x42fe0b
call fcn.0042f260
mov byte [0x45ded4], 1
mov byte [ebp - 0x1d], 1
push 0x45dea4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
jmp 0x42fe3a
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [0x45dee4]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x64]
jge 0x42fe78
mov edx, dword [ebp - 0x24]
mov eax, dword [0x45dee0]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call fcn.0041d276
add esp, 8
test eax, eax
jne 0x42fe76
mov byte [ebp - 0x1d], 0
jmp 0x42fe78
jmp 0x42fe31
mov dword [ebp - 4], 0xffffffff
call fcn.0042fe86
jmp 0x42fe92
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x430127
push 8
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041d590
add esp, 0xc
call fcn.0042fd00
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042fc60
add esp, 8
cmp dword [ebp + 0x1c], 0
jne 0x42feeb
push 0
push 0x10
call fcn.004370c0
neg eax
sbb eax, eax
neg eax
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00436480
add esp, 0x10
jmp 0x42fef2
mov dword [ebp - 0x44], 0
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0x18
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x40]
mov dword [ecx + 8], edx
cmp dword [ebp + 0x1c], 0
je 0x42ff1f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
jmp 0x42ff25
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x7c]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x28], 0xffffffff
push 0
push 0x12c
push 0x104
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [0x45debc]
push eax
push 0x442ea0
call fcn.00430140
add esp, 8
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x44], 0
je 0x42ff84
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [ebp - 0x1d]
test eax, eax
jne 0x42ff93
xor al, al
jmp 0x43012a
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x430127
push str.NtCreatePort_succeeded_n
call fcn.0042fc50
add esp, 4
cmp dword [ebp + 0x14], 0x40
jbe 0x42ffb9
mov dword [ebp + 0x14], 0x40
push 0x4c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
call fcn.00409a12
add esp, 4
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x430030
mov edx, dword [ebp - 0x60]
mov dword [edx], 0
mov eax, dword [ebp - 0x60]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x60]
mov byte [edx + 0xc], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
jmp 0x430037
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x80]
mov dword [ecx + 0x48], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x14], eax
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x58]
add edx, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp - 0x58]
push ecx
push 0x430620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp - 0x58]
push ecx
push 0x430160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x44], eax
push 7
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x45dea4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
push ecx
mov ecx, 0x45dee0
call fcn.004323c0
mov dword [ebp - 4], 0xffffffff
call fcn.0043011b
jmp 0x430127
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret