Function at 0x4f1518
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4f1521
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f1a57
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004077cc
xor edx, edx
mov dword [eax + 0x5c], edx
mov byte [ebp - 0x16], 0
mov eax, ebx
cmp eax, 5
ja case.default.0x4f155e
jmp dword [eax*4 + 0x4f1565]
cmp dword [esi + 0x4d], 0
je 0x4f158e
lea eax, [esi + 0x49]
mov edx, dword [esi + 0x4d]
call fcn.004051f8
lea eax, [esi + 0x41]
mov edx, dword [edi + 4]
call fcn.0040539c
cmp dword [esi + 0x41], 0
je 0x4f15d1
lea eax, [ebp - 0x28]
mov edx, dword [edi + 0xc]
call fcn.0040539c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x41]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov edx, 1
call fcn.004efb28
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x41]
call fcn.004051f8
lea eax, [esi + 0x45]
mov edx, dword [edi + 8]
call fcn.0040539c
cmp word [esi + 0x13], 0
je 0x4f1625
lea eax, [ebp - 0x2c]
mov edx, dword [edi + 8]
call fcn.0040539c
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov edx, dword [edi + 0xc]
call fcn.0040539c
mov eax, dword [ebp - 0x30]
push eax
movzx eax, word [edi + 0x1e]
push eax
movzx eax, word [edi + 0x20]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [edi + 4]
call fcn.0040539c
mov ecx, dword [ebp - 0x34]
mov edx, esi
mov eax, dword [esi + 0x15]
call dword [esi + 0x11]
cmp byte [ebp - 0x16], 0
je 0x4f1637
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f1a27
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f1a27
lea eax, [ebp - 0x38]
mov edx, dword [edi + 4]
call fcn.0040539c
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x5e]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4f1670
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x62]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x4f1678
lea eax, [ebp - 4]
call fcn.004051a4
cmp word [esi + 0x23], 0
je 0x4f16bb
lea eax, [ebp - 0x3c]
mov edx, dword [edi + 8]
call fcn.0040539c
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
mov edx, dword [edi + 0xc]
call fcn.0040539c
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [edi + 4]
call fcn.0040539c
mov ecx, dword [ebp - 0x44]
mov edx, esi
mov eax, dword [esi + 0x25]
call dword [esi + 0x21]
cmp byte [ebp - 0x16], 0
je 0x4f16cd
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f1a27
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f1a27
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov edx, dword [edi + 4]
call fcn.0040539c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 4]
mov edx, 1
call fcn.004efb28
cmp word [esi + 0x1b], 0
je 0x4f173a
mov eax, dword [edi]
push eax
movzx eax, word [edi + 0x18]
push eax
movzx eax, word [edi + 0x1a]
push eax
movzx eax, word [edi + 0x1c]
push eax
movzx eax, word [edi + 0x22]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x4c]
mov edx, dword [edi + 4]
call fcn.0040539c
mov ecx, dword [ebp - 0x4c]
mov edx, esi
mov eax, dword [esi + 0x1d]
call dword [esi + 0x19]
cmp byte [ebp - 0x16], 0
je 0x4f174c
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f1a27
cmp dword [ebp - 4], 0
jne 0x4f175c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f1a27
mov edx, dword [ebp - 4]
mov eax, dword [0x54974c]
call fcn.004ef5d4
test al, al
jne 0x4f17b5
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040addc
mov eax, dword [ebp - 0x50]
call fcn.0040aa78
mov eax, dword [ebp - 4]
call fcn.0040aa0c
test al, al
je 0x4f17b5
mov eax, dword [ebp - 4]
call fcn.0040ab70
test al, 1
je 0x4f17b5
test byte [esi + 0x10], 2
je 0x4f17a8
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f1a27
mov edx, eax
and edx, 0xfffffffe
mov eax, dword [ebp - 4]
call fcn.0040ab84
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405650
mov ecx, 0x180
mov edx, 0x8121
call fcn.004efcb0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x4f17ec
call fcn.004077cc
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x5c], edx
cmp dword [ebp - 0xc], 0xffffffff
je 0x4f1a27
lea eax, [ebp - 0x54]
mov edx, dword [edi + 4]
call fcn.0040539c
mov edx, dword [ebp - 0x54]
mov eax, dword [esi + 0x5e]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x62]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4f1a27
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
mov eax, dword [edi + 0x14]
call fcn.004efe80
lea eax, [ebp - 0x58]
mov edx, dword [edi + 4]
call fcn.0040539c
mov edx, dword [ebp - 0x58]
mov eax, dword [esi + 0x5e]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4f188f
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x62]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x5e]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x62]
mov ecx, dword [eax]
call dword [ecx + 0x48]
movzx eax, word [edi + 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405650
movzx ecx, word [edi + 0x1a]
movzx edx, word [edi + 0x18]
call fcn.004f0114
jmp 0x4f1897
lea eax, [ebp - 4]
call fcn.004051a4
mov eax, dword [edi]
and eax, 1
dec eax
sete byte [ebp - 0x15]
cmp word [esi + 0x2b], 0
je 0x4f18de
movzx eax, word [edi + 0x18]
push eax
movzx eax, word [edi + 0x1a]
push eax
movzx eax, word [edi + 0x1c]
push eax
movzx eax, word [edi + 0x22]
push eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x5c]
mov edx, dword [edi + 4]
call fcn.0040539c
mov ecx, dword [ebp - 0x5c]
mov edx, esi
mov eax, dword [esi + 0x2d]
call dword [esi + 0x29]
cmp byte [ebp - 0x16], 0
je 0x4f18f0
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f1a27
cmp byte [ebp - 0x15], 0
je 0x4f191d
test byte [esi + 0x10], 1
je 0x4f191d
cmp dword [ebp - 4], 0
je 0x4f191d
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405650
push eax
push 0x4f1a68
push 0
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0xc], 1
jmp 0x4f1a27
cmp word [esi + 0x33], 0
je 0x4f1998
lea eax, [ebp - 8]
mov edx, dword [edi + 0xc]
call fcn.0040539c
lea eax, [ebp - 0x60]
mov edx, dword [edi + 8]
call fcn.0040539c
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x24]
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x64]
mov edx, dword [edi + 4]
call fcn.0040539c
mov ecx, dword [ebp - 0x64]
mov edx, esi
mov eax, dword [esi + 0x35]
call dword [esi + 0x31]
cmp byte [ebp - 0x16], 0
je 0x4f197b
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4f19ac
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.0040f560
mov edx, dword [ebp - 0x68]
mov eax, dword [edi + 0xc]
call fcn.0040b124
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f19ac
cmp dword [edi + 0x24], 0
jne 0x4f19a5
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f19ac
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x70]
mov edx, dword [edi + 0xc]
call fcn.0040539c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x74]
mov edx, dword [edi + 4]
call fcn.0040539c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x6c]
mov edx, 1
call fcn.004efb28
mov edx, dword [ebp - 0x6c]
lea eax, [esi + 0x4d]
call fcn.004051f8
mov byte [esi + 0x51], 1
jmp 0x4f1a27
xor eax, eax
mov dword [ebp - 0xc], eax
cmp word [esi + 0x3b], 0
je 0x4f1a27
push edi
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x3d]
call dword [esi + 0x39]
jmp 0x4f1a27
xor eax, eax
mov dword [ebp - 0xc], eax
cmp word [esi + 0x3b], 0
je 0x4f1a27
push edi
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x3d]
call dword [esi + 0x39]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1a5e
lea eax, [ebp - 0x74]
mov edx, 0x14
call fcn.004051c8
lea eax, [ebp - 0x1c]
call fcn.004051a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051c8
ret