Function at 0x404790
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [eax]
push ebx
push esi
sub eax, 0x10
push edi
push eax
call fcn.00406aa0
add eax, 0x10
add esp, 4
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00406260
mov ebx, eax
call fcn.004062e0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x4047da
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404a13
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [eax]
mov dword [ebp - 0x1c], eax
test edx, edx
jne 0x4047f9
xor eax, eax
jmp 0x40480f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404800
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, 0x4afd00
call fcn.004069f0
mov ebx, 0x4afd00
call fcn.00406260
mov ebx, eax
call fcn.004062e0
mov esi, 1
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x10], esi
jle 0x4049f0
lea ecx, [ecx]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4ae214]
mov edi, dword [edx + esi*4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 4], eax
test edi, edi
je 0x404885
test edi, 0xffff0000
jne 0x404889
movzx edi, di
push 0
push edi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x4048a9
push edi
push eax
lea ecx, [ebp - 4]
call fcn.00406e10
jmp 0x4048a9
xor eax, eax
jmp 0x40489f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404890
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 4]
call fcn.004069f0
lea ebx, [ebp - 4]
call fcn.00406260
mov ebx, eax
call fcn.004062e0
cmp dword [ebp - 0x18], 0
jne 0x4048d0
lea eax, [ebp - 4]
mov edi, 0x4afd14
call fcn.00406190
jmp 0x4049c2
mov edi, dword [ebp - 4]
mov ecx, 0x4976c0
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404906
test dx, dx
je 0x404902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404906
add eax, 4
add ecx, 4
test dx, dx
jne 0x4048e0
xor eax, eax
jmp 0x40490b
sbb eax, eax
sbb eax, reloc.NETAPI32.dll_NetApiBufferFree
test eax, eax
jne 0x40491a
mov dword [ebp - 0x18], eax
lea eax, [edi - 0x10]
jmp 0x4049c8
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov edx, dword [0x4ae214]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 4]
call fcn.00404a30
add esp, 8
test eax, eax
je 0x404977
push 0x4afd04
lea eax, [ebp - 0xc]
call fcn.00406070
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.00406470
jmp 0x404984
lea eax, [ebp - 4]
mov edi, 0x4afd14
call fcn.00406190
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4049a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x404840
mov esi, 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [0x4afcfc], esi
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret