Function at 0x42cd50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ddeb
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
call fcn.004929f0
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7ff
lea eax, [ebp - 0x1010]
push eax
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42cdeb
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42cdb0
sub eax, edx
sar eax, 1
dec eax
cmp eax, edi
jle 0x42cdeb
mov ecx, 0x5c
lea esp, [esp]
cmp word [ebp + eax*2 - 0x1010], cx
je 0x42cde1
dec eax
cmp eax, edi
jg 0x42cdd0
jmp 0x42cdeb
xor ecx, ecx
mov word [ebp + eax*2 - 0x1010], cx
push 0x3c
lea edx, [ebp - 0x1060]
push edi
push edx
call fcn.00479dd0
add esp, 0xc
cmp byte [0x4c7dca], 0
mov dword [ebp - 0x1060], 0x3c
mov dword [ebp - 0x105c], 0x40
mov dword [ebp - 0x1058], edi
jne 0x42ce25
call fcn.0042de30
cmp byte [0x4c7dcb], 0
je 0x42ce76
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.0042dfd0
add esp, 4
cmp eax, edi
jne 0x42ce76
cmp dword [ebp - 0x1014], 0x2000
ja 0x42ce76
cmp byte [0x4c7dca], 0
jne 0x42ce63
call fcn.0042de30
cmp byte [0x4c7dcb], 0
mov dword [ebp - 0x1054], 0x4b1bc8
jne 0x42ce80
mov dword [ebp - 0x1054], str.open
lea edx, [ebp - 0x1060]
lea ecx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x1050], esi
mov dword [ebp - 0x104c], ebx
mov dword [ebp - 0x1048], ecx
mov dword [ebp - 0x1044], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42cf94
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [0x4c41fc]
xor eax, eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x1014], eax
push ebx
push esi
mov dword [ebp - 4], edi
push esi
push str.__s____s____s_
lea edi, [ebp - 0x1014]
call fcn.004020e0
add esp, 0x10
lea ecx, [ebp - 0x1024]
push ecx
lea edx, [ebp - 0x10a8]
push edx
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
or edx, 0xffffffff
test eax, eax
jne 0x42cf64
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cf60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42cf9a
mov esi, dword [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cf90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42cf9a
mov eax, dword [ebp - 0x1028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret