Function at 0x404050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a15af
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xa0], esi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], esi
jb 0x40409d
mov eax, dword [eax]
lea ecx, [ebp - 0xa8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0xa8], 4
mov edi, eax
jge 0x4040be
or eax, 0xffffffff
jmp 0x40439c
mov ecx, dword [edi]
mov eax, 0x4a7c04
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4040eb
cmp dx, si
je 0x4040e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4040eb
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4040c5
xor eax, eax
jmp 0x4040f0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x4040fe
mov eax, 0xfffffffe
jmp 0x40439c
mov eax, dword [edi + 4]
mov edx, 0x3a
cmp dx, word [eax + 2]
jne 0x40411e
lea ecx, [ebp - 0x48]
call fcn.004058e0
mov dword [ebp - 4], esi
mov ebx, 1
jmp 0x404177
lea ecx, [ebp - 0x9c]
call fcn.00466ef0
mov dword [ebp - 4], 1
push 0x4a7b0c
push eax
lea eax, [ebp - 0x80]
mov esi, 2
push eax
mov dword [ebp - 0xa0], esi
call fcn.00409780
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
push ecx
push eax
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0xa0], 6
call fcn.00409780
add esp, 0xc
mov dword [ebp - 4], 3
mov ebx, 0xe
mov edx, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xa0], ebx
call fcn.004687c0
mov dword [ebp - 4], 5
test bl, 8
je 0x4041c5
and ebx, 0xfffffff7
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x50], 8
jb 0x4041ae
mov eax, dword [ebp - 0x64]
push eax
call fcn.0047bd91
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
jmp 0x4041ca
mov esi, 7
mov byte [ebp - 4], 6
test bl, 4
je 0x4041fe
and ebx, 0xfffffffb
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x6c], 8
jb 0x4041ee
mov edx, dword [ebp - 0x80]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 7
test bl, 2
je 0x404241
and ebx, 0xfffffffd
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x88], 8
jb 0x404228
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 8
test bl, 1
je 0x404275
and ebx, 0xfffffffe
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x34], 8
jb 0x404265
mov eax, dword [ebp - 0x48]
push eax
call fcn.0047bd91
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
mov edx, dword [edi + 8]
push edx
call fcn.0047c570
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4042bc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x4042a0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, 0xfffffffd
jmp 0x40439c
mov ecx, dword [edi + 0xc]
push ecx
call fcn.0047c570
mov esi, eax
add esp, 4
test esi, esi
jne 0x4042e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404fe0
lea eax, [esi - 4]
jmp 0x40439c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40433b
call fcn.00460c70
push edi
mov byte [ebp - 0xa1], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xa1], 0
je 0x40433b
mov ecx, dword [ebp - 0xac]
call fcn.004045a0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404fe0
mov eax, esi
jmp 0x40439c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404347
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404fa0
mov byte [ebp - 4], 9
push esi
lea edx, [ebp - 0x48]
push edx
mov eax, ebx
call fcn.004043c0
mov edi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00404fe0
test edi, edi
jns 0x404388
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404fe0
mov eax, 0xfffffffa
jmp 0x40439c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404fe0
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret