Function at 0x408060
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4650f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4792b0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4792b0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], cx
mov dword [esp + 0x5c], 0x2001f
mov dword [esp + 0x6c], ebp
push 0x12
xor edx, edx
push str.SoftwareAiCiIdiom
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], dx
call fcn.004032b0
lea edi, [esp + 0x20]
lea eax, [esp + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.00404990
mov edi, 8
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x38], edi
jb 0x408116
mov eax, dword [esp + 0x24]
push eax
call fcn.004493e1
add esp, 4
xor ecx, ecx
push 3
mov word [esp + 0x28], cx
push 0x472fb0
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
call fcn.004032b0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.00404a90
mov bl, al
cmp dword [esp + 0x38], edi
jb 0x40815c
mov eax, dword [esp + 0x24]
push eax
call fcn.004493e1
add esp, 4
test bl, bl
je 0x40816b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edx + 4], ecx
push 2
xor eax, eax
push 0x472fb8
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], ax
call fcn.004032b0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.00404a90
test al, al
je 0x4081ab
cmp dword [esp + 0x1c], 1
jne 0x4081ab
mov bl, 1
jmp 0x4081ad
xor bl, bl
cmp dword [esp + 0x38], edi
jb 0x4081c0
mov edx, dword [esp + 0x24]
push edx
call fcn.004493e1
add esp, 4
test bl, bl
je 0x4081cc
mov eax, dword [esp + 0x14]
mov byte [eax + 8], 1
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [esp + 0x18], ebp
mov ebx, eax
jle 0x4082cf
jmp 0x4081f5
mov esi, 7
mov edx, dword [ebx + edi*4]
xor eax, eax
mov word [esp + 0x24], ax
mov eax, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408210
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004032b0
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x40823d
lea eax, [esp + 0x24]
push str._install
push eax
call fcn.0044ad7c
add esp, 8
test eax, eax
jne 0x40825b
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
jmp 0x4082b1
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x408269
lea eax, [esp + 0x24]
push str._selfcheck
push eax
call fcn.0044ad7c
add esp, 8
test eax, eax
jne 0x408287
mov edx, dword [esp + 0x14]
mov dword [edx], 3
jmp 0x4082b1
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x408295
lea eax, [esp + 0x24]
push str._uninst
push eax
call fcn.0044ad7c
add esp, 8
test eax, eax
jne 0x4082b1
mov eax, dword [esp + 0x14]
mov dword [eax], 2
cmp dword [esp + 0x38], esi
jb 0x4082c4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004493e1
add esp, 4
inc edi
cmp edi, dword [esp + 0x18]
jl 0x4081f0
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x408321
cmp eax, reloc.WS2_32.dll_accept
je 0x40831d
cmp eax, reloc.WS2_32.dll_bind
je 0x40831d
cmp eax, 0x80000000
je 0x40831d
cmp eax, reloc.WS2_32.dll_getpeername
je 0x40831d
cmp eax, reloc.WS2_32.dll_getsockopt
je 0x40831d
cmp eax, reloc.WS2_32.dll_connect
je 0x40831d
cmp eax, 0x80000060
je 0x40831d
cmp eax, 0x80000050
je 0x40831d
cmp eax, reloc.WS2_32.dll_closesocket
je 0x40831d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebp
cmp dword [esp + 0x58], 8
jb 0x408335
mov edx, dword [esp + 0x44]
push edx
call fcn.004493e1
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004493ec
add esp, 0x5c
ret 4