Function at 0x47fef0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x52b0a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [ebp + 0x64]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00406af0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x68]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x48], eax
jmp 0x47ff42
mov ecx, dword [ebp + 0x48]
add ecx, 0x18
mov dword [ebp + 0x48], ecx
mov edx, dword [ebp + 0x68]
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp + 4], ecx
mov edx, dword [ebp + 0x48]
cmp edx, dword [ebp + 4]
jne 0x47ff62
mov dword [ebp + 8], 1
jmp 0x47ff69
mov dword [ebp + 8], 0
movzx eax, byte [ebp + 8]
test eax, eax
jne 0x47ff7a
mov dword [ebp + 0x3c], 1
jmp 0x47ff81
mov dword [ebp + 0x3c], 0
movzx ecx, byte [ebp + 0x3c]
test ecx, ecx
je 0x480005
movsx edx, byte [0x533e38]
test edx, edx
jne 0x47ff9d
mov dword [ebp + 0xc], 0
jmp 0x47ffce
mov dword [ebp + 0x4c], 0x533e38
mov eax, dword [ebp + 0x4c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x4c]
mov dl, byte [ecx]
mov byte [ebp + 0x52], dl
add dword [ebp + 0x4c], 1
cmp byte [ebp + 0x52], 0
jne 0x47ffad
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x533e38
lea ecx, [ebp - 0xc8]
call fcn.00406e30
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x5523c8]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0xc8]
call fcn.00406d70
jmp 0x47ff39
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
push 0
push 0
lea ecx, [ebp - 0xac]
call fcn.004072e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00477ca0
add esp, 8
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x68], 0x80
xor eax, eax
mov word [ebp - 0x62], ax
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0x54], eax
mov byte [ebp + 0x5b], 0
cmp dword [ebp + 0x70], 0
je 0x4800d1
push 2
push 1
push 0
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax]
call fcn.00495b60
push eax
mov ecx, dword [ebp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
push 1
mov ecx, dword [ebp + 0x70]
call fcn.00495d60
jmp 0x48010b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x480104
push 2
push 1
push 0
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0x54]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
jmp 0x48010b
mov dword [ebp - 0x5c], 0
cmp dword [ebp + 0x74], 0
je 0x48013a
push 2
push 1
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x74]
mov ecx, dword [ecx]
call fcn.00495b80
push eax
mov edx, dword [ebp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
jmp 0x480174
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x48016d
push 2
push 1
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
mov edx, dword [ebp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
jmp 0x480174
mov dword [ebp - 0x58], 0
cmp dword [ebp + 0x78], 0
je 0x4801a3
push 2
push 1
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x78]
mov ecx, dword [edx]
call fcn.00495b80
push eax
mov eax, dword [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
jmp 0x4801dd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4801d6
push 2
push 1
push 0
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 0x54]
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
mov eax, dword [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov byte [ebp + 0x5b], 1
jmp 0x4801dd
mov dword [ebp - 0x54], 0
cmp dword [ebp + 0x74], 0
je 0x4801ed
push 2
mov ecx, dword [ebp + 0x74]
call fcn.00495d60
cmp dword [ebp + 0x78], 0
je 0x4801fd
push 2
mov ecx, dword [ebp + 0x78]
call fcn.00495d60
movzx ecx, byte [ebp + 0x5b]
test ecx, ecx
je 0x480211
mov edx, dword [ebp - 0x68]
or edx, 0x100
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.004072e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
call fcn.00477ca0
add esp, 8
cmp dword [ebp - 0x40], 0
jne 0x48024e
mov dword [ebp + 0x24], 1
jmp 0x480255
mov dword [ebp + 0x24], 0
movzx edx, byte [ebp + 0x24]
test edx, edx
je 0x480266
mov dword [ebp + 0x14], 0
jmp 0x480289
cmp dword [ebp - 0x3c], 8
jb 0x48027d
mov eax, dword [ebp - 0xb0]
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp + 0x44], ecx
jmp 0x480283
lea edx, [ebp - 0x50]
mov dword [ebp + 0x44], edx
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x7c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4802c7
mov dword [ebp + 0x1c], 1
jmp 0x4802ce
mov dword [ebp + 0x1c], 0
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
jne 0x480331
mov edx, dword [ebp + 0x7c]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.00480f60
add esp, 8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp + 0x38], ecx
mov byte [ebp - 4], 4
lea edx, [ebp + 0x2c]
cmp edx, dword [ebp + 0x38]
je 0x48031c
lea ecx, [ebp + 0x2c]
call fcn.0041e310
xor ecx, ecx
mov byte [ebp + 0x53], cl
movzx edx, byte [ebp + 0x53]
push edx
mov eax, dword [ebp + 0x38]
push eax
lea ecx, [ebp + 0x2c]
call fcn.004817d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.0041e310
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x480344
mov dword [ebp + 0x28], 0
jmp 0x48034b
mov dword [ebp + 0x28], 0x8000000
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x98], 8
jb 0x48036e
mov eax, dword [ebp - 0xcc]
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp + 0x40], ecx
jmp 0x480377
lea edx, [ebp - 0xac]
mov dword [ebp + 0x40], edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
movzx edx, byte [ebp + 0x5b]
push edx
push 0
push 0
mov eax, dword [ebp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x5c], 0
je 0x4803b9
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
je 0x4803c9
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x4803d9
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x480488
mov ecx, dword [ebp - 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
call fcn.004b97f6
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 5
cmp dword [ebp + 0x18], 0
je 0x480422
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.0047fbe0
mov dword [ebp + 0x10], eax
jmp 0x480429
mov dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
mov dword [ebp], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2c]
call fcn.0041e310
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004072e0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.004072e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00407040
mov eax, dword [ebp]
jmp 0x48051d
push str.Cannot_launch_process
lea ecx, [ebp - 0x100]
call fcn.00406b80
mov byte [ebp - 4], 6
push 0
mov eax, dword [ebp + 0x64]
push eax
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004545a0
push 0x572e5c
lea edx, [ebp - 0x12c]
push edx
call fcn.004be2db
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x100]
call fcn.00407040
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2c]
call fcn.0041e310
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004072e0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.004072e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00407040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x5c
mov esp, ebp
pop ebp
ret