Function at 0x4e6438
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x4e6441
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e6b92
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405790
je 0x4e6b5a
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4e6534
lea eax, [ebp - 0xcc]
xor ecx, ecx
mov edx, 0x44
call fcn.004035f8
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xa0], 1
mov word [ebp - 0x9c], 0xa
cmp dword [ebp + 0x14], 0
jl 0x4e64f0
cmp dword [ebp + 0x10], 0
jl 0x4e64f0
mov eax, dword [ebp + 0x14]
test eax, eax
jns 0x4e64d1
call fcn.00403be4
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jns 0x4e64e3
call fcn.00403be4
mov dword [ebp - 0xb8], eax
or dword [ebp - 0xa0], 4
cmp dword [ebp + 0xc], 0
jle 0x4e65b9
cmp dword [ebp + 8], 0
jle 0x4e65b9
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x4e6510
call fcn.00403be4
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
test eax, eax
jns 0x4e6522
call fcn.00403be4
mov dword [ebp - 0xb0], eax
or dword [ebp - 0xa0], 2
jmp 0x4e65b9
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x44
call fcn.004035f8
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x58], 0xa
cmp dword [ebp + 0x14], 0
jl 0x4e658b
cmp dword [ebp + 0x10], 0
jl 0x4e658b
mov eax, dword [ebp + 0x14]
test eax, eax
jns 0x4e6575
call fcn.00403be4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jns 0x4e6584
call fcn.00403be4
mov dword [ebp - 0x74], eax
or dword [ebp - 0x5c], 4
cmp dword [ebp + 0xc], 0
jle 0x4e65b9
cmp dword [ebp + 8], 0
jle 0x4e65b9
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x4e65a3
call fcn.00403be4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
test eax, eax
jns 0x4e65b2
call fcn.00403be4
mov dword [ebp - 0x6c], eax
or dword [ebp - 0x5c], 2
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.004054e4
mov edx, dword [ebp - 0x28]
mov eax, 0x4e6bac
call fcn.0040598c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x4e65f8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
sub ecx, 1
jno 0x4e65eb
call fcn.00403bec
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.00405814
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00483608
push 0
lea eax, [ebp - 0xe0]
push eax
xor ecx, ecx
mov edx, 0x4e6bb4
mov eax, dword [ebp - 0x2c]
call fcn.004af72c
mov edx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
call fcn.004054e4
mov eax, dword [ebp - 0x2c]
call fcn.004838ac
test al, al
jne 0x4e663d
lea eax, [ebp - 0x2c]
call fcn.00405480
push 0
lea eax, [ebp - 0xe4]
push eax
xor ecx, ecx
mov edx, 0x4e6bb4
mov eax, dword [ebp - 0x28]
call fcn.004af72c
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0x28]
call fcn.004054e4
lea edx, [ebp - 0xec]
mov eax, dword [ebp - 0x28]
call fcn.004836a8
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
xor edx, edx
call fcn.00483510
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0x30]
call fcn.00409df4
mov edx, dword [ebp - 0x30]
mov eax, 0x4e6bbc
call fcn.0040598c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x4e66c6
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x40]
sub ecx, 1
jno 0x4e66b9
call fcn.00403bec
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00405814
lea edx, [ebp - 0xf0]
mov eax, dword [ebp - 8]
call fcn.004836f4
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0x34]
call fcn.00409df4
lea eax, [ebp - 0x34]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00405814
mov eax, dword [0x550240]
mov eax, dword [eax]
mov byte [eax + 0x7b8], 0
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4e6766
mov eax, dword [ebp - 0x2c]
call fcn.0040565c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
call fcn.00405790
jne 0x4e672c
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040565c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
jmp 0x4e67d0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
call fcn.00404efc
mov eax, dword [ebp - 0x14]
call fcn.00405138
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
call fcn.00405790
jne 0x4e678d
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404efc
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00405138
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x4e6b35
test byte [ebp - 0xc], 1
jne 0x4e6a2b
mov dword [ebp - 0x40], 0x4e20
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bc4
call fcn.00405790
je 0x4e6809
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bd4
call fcn.00405790
jne 0x4e6810
mov dword [ebp - 0x40], 0x1f4
mov eax, dword [ebp - 0x40]
test eax, eax
jns 0x4e681c
call fcn.00403be4
push eax
mov eax, dword [ebp - 0xdc]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [ebp - 0x30]
mov edx, 0x4e6be4
call fcn.00405790
je 0x4e685a
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bc4
call fcn.00405790
je 0x4e685a
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bd4
call fcn.00405790
jne 0x4e6979
xor eax, eax
mov dword [ebp - 0x40], eax
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.00520c8c
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0xf4]
mov eax, dword [ebp - 0x3c]
call fcn.0054a6c8
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0x28]
call fcn.00409df4
mov eax, dword [ebp - 0x30]
mov edx, 0x4e6be4
call fcn.00405790
jne 0x4e68da
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6bfc
call fcn.00405790
je 0x4e68cc
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6c1c
call fcn.00405790
je 0x4e68cc
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6c3c
call fcn.00405790
jne 0x4e68da
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004e6204
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bc4
call fcn.00405790
jne 0x4e6915
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6c50
call fcn.00405790
je 0x4e6907
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6c64
call fcn.00405790
jne 0x4e6915
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004e6204
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bd4
call fcn.00405790
jne 0x4e6941
mov eax, dword [ebp - 0x28]
mov edx, 0x4e6c78
call fcn.00405790
jne 0x4e6941
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004e6204
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x4e6954
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0xb
jne 0x4e685f
mov eax, dword [ebp - 0x34]
mov edx, 0x4e6bc4
call fcn.00405790
jne 0x4e69d2
push 0x14
call sub.kernel32.dll_Sleep_2
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00520b78
jmp 0x4e69d2
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xd4]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e45dc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4e69a7
mov eax, dword [ebp - 0x3c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4e69c4
push 0x14
call sub.kernel32.dll_Sleep_2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00520b78
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0x33
jne 0x4e697e
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004e6204
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0x14], 0
jl 0x4e69e3
cmp dword [ebp + 0x10], 0
jge 0x4e69e7
or dword [ebp - 0x44], 2
cmp dword [ebp + 0xc], 0
jle 0x4e69f3
cmp dword [ebp + 8], 0
jg 0x4e69f7
or dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 3
je 0x4e6aa9
mov eax, dword [ebp - 0x44]
test eax, eax
jns 0x4e6a0d
call fcn.00403be4
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4e6aa9
push 0xffffffffffffffff
mov eax, dword [ebp - 0xdc]
push eax
call sub.user32.dll_WaitForInputIdle
jmp 0x4e6a4f
push 0xa
call sub.kernel32.dll_Sleep_2
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.00520b78
push 0xa
mov eax, dword [ebp - 0xdc]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4e6a3b
xor eax, eax
push ebp
push 0x4e6a9f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xdc]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x4e6a95
mov eax, dword [ebp - 0x38]
test eax, eax
jns 0x4e6a92
call fcn.00403be4
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6aa9
xor eax, eax
push ebp
push 0x4e6ae5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xd8]
test eax, eax
jns 0x4e6ac6
call fcn.00403be4
call fcn.004b1bf8
test al, al
je 0x4e6adb
mov eax, dword [ebp - 0xd8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6aef
xor eax, eax
push ebp
push 0x4e6b2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xdc]
test eax, eax
jns 0x4e6b0c
call fcn.00403be4
call fcn.004b1bf8
test al, al
je 0x4e6b21
mov eax, dword [ebp - 0xdc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6b35
mov eax, dword [0x550240]
mov eax, dword [eax]
mov byte [eax + 0x7b8], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x379], 1
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.00520c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6b99
lea eax, [ebp - 0xf4]
mov edx, 6
call fcn.00405498
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00405498
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404c7c
ret