Function at 0x466032
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x49ad53
call fcn.0046c220
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
call fcn.004310cc
pop ecx
test al, al
je 0x466062
push 0x7b
call fcn.00458df3
pop ecx
xor al, al
jmp 0x4663b8
mov edi, 0x49dd3d
cmp dword [ebp + 0x10], 0
cmovne edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
cmp byte [esi], 0x7c
je 0x4662bc
cmp byte [edi], 0x7c
je 0x4662bc
lea ecx, [ebp - 0x24]
call fcn.00428d6d
push 8
push str.file:___
push esi
call fcn.0047ee42
add esp, 0xc
test eax, eax
jne 0x466203
lea eax, [esi + 8]
mov ebx, closesocket
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.0042f9a7
mov eax, 0x49cb70
cmp dword [ebp - 0x24], 0
cmovne eax, dword [ebp - 0x24]
push eax
call fcn.0044454b
pop ecx
test al, al
jne 0x4660fb
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0043eb95
pop ecx
pop ecx
test al, al
je 0x466203
mov eax, 0x49cb70
cmp dword [ebp - 0x24], 0
cmovne eax, dword [ebp - 0x24]
push eax
call fcn.0044454b
pop ecx
test al, al
je 0x466110
mov esi, 0x49cb70
cmp dword [ebp - 0x24], 0
cmovne esi, dword [ebp - 0x24]
mov dword [ebp + 8], esi
jmp 0x466203
lea ecx, [ebp - 0x30]
call fcn.00428d6d
push 0xfde9
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00459a80
add esp, 0xc
test al, al
je 0x4661fb
lea ecx, [ebp - 0x54]
call fcn.00428d6d
lea ecx, [ebp - 0x48]
call fcn.00428d6d
lea ecx, [ebp - 0x3c]
call fcn.00428d6d
push 0
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00459aa5
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.00428d6d
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.0042f9a7
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00446503
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004266a4
push 0
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 0x14]
call fcn.00459aa5
mov esi, 0x49cb74
mov edx, esi
cmp dword [ebp - 0x3c], 0
cmovne edx, dword [ebp - 0x3c]
mov ecx, esi
cmp dword [ebp - 0x48], 0
cmovne ecx, dword [ebp - 0x48]
mov eax, esi
cmp dword [ebp - 0x54], 0
cmovne eax, dword [ebp - 0x54]
cmp dword [ebp - 0x30], 0
cmovne esi, dword [ebp - 0x30]
push dword [ebp + 0x18]
push edx
push ecx
push eax
push esi
call fcn.004663c7
add esp, 0x24
mov bl, al
lea ecx, [ebp - 0x3c]
call fcn.004266a4
lea ecx, [ebp - 0x48]
call fcn.004266a4
lea ecx, [ebp - 0x54]
call fcn.004266a4
lea ecx, [ebp - 0x30]
call fcn.004266a4
jmp 0x4662a0
lea ecx, [ebp - 0x30]
call fcn.004266a4
call fcn.00458dea
and dword [ebp - 4], 0
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 0x14]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x466246
cmp eax, 5
jne 0x466299
test ebx, ebx
je 0x466260
push str.open
push ebx
call fcn.00430f10
pop ecx
pop ecx
test eax, eax
jne 0x46629e
mov dword [ebp - 4], 2
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push esi
push 0x4b4ba8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x466299
cmp eax, 0x20
jg 0x4662a8
xor bl, bl
lea ecx, [ebp - 0x24]
jmp 0x4663b1
call fcn.00458dea
lea ecx, [ebp - 0x24]
call fcn.004266a4
mov al, 1
jmp 0x4663b8
lea ecx, [ebp - 0x30]
call fcn.00428d6d
lea ecx, [ebp - 0x3c]
call fcn.00428d6d
lea ecx, [ebp - 0x48]
call fcn.00428d6d
lea ecx, [ebp - 0x54]
call fcn.00428d6d
lea ecx, [ebp - 0x60]
call fcn.00428d6d
mov ebx, closesocket
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0042f9a7
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00446503
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004266a4
push 0
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00459aa5
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.00428d6d
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.0042f9a7
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00446503
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004266a4
push 0
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp + 0x14]
call fcn.00459aa5
mov esi, 0x49cb74
mov edx, esi
cmp dword [ebp - 0x54], 0
cmovne edx, dword [ebp - 0x54]
mov ecx, esi
cmp dword [ebp - 0x48], 0
cmovne ecx, dword [ebp - 0x48]
mov eax, esi
cmp dword [ebp - 0x3c], 0
cmovne eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x30], 0
cmovne esi, dword [ebp - 0x30]
push dword [ebp + 0x18]
push edx
push ecx
push eax
push esi
call fcn.004663c7
add esp, 0x24
mov bl, al
lea ecx, [ebp - 0x54]
call fcn.004266a4
lea ecx, [ebp - 0x48]
call fcn.004266a4
lea ecx, [ebp - 0x3c]
call fcn.004266a4
lea ecx, [ebp - 0x30]
call fcn.004266a4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret