Function at 0x410870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [0x131b20c]
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
test edi, edi
je 0x4109b0
mov esi, dword [0x131b210]
cmp esi, 1
jle 0x410931
test ebp, ebp
mov ebx, 1
mov dword [esp + 0x28], 1
je 0x410940
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x50]
jmp 0x4108cf
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [esp + 0x2c]
cmp ebx, esi
jge 0x410931
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + ebx*4]
add ebx, 1
test ecx, ecx
je 0x4108c0
cmp byte [eax], 0x2d
jne 0x4108c0
movzx edx, byte [eax + 1]
test dl, dl
je 0x4108c0
cmp dl, 0x2d
jne 0x4108fd
cmp byte [eax + 2], 0
mov dword [esp + 0x28], 0
je 0x4108cb
mov edx, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0xc], edx
mov edx, dword [edi + ebx*4]
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], edx
call fcn.00410280
test eax, eax
js 0x410b26
add ebx, eax
cmp ebx, esi
mov dword [esp + 0x28], 1
jl 0x4108cf
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x41094b
cmp esi, ebx
jle 0x410931
mov eax, dword [edi + ebx*4]
add ebx, 1
test edx, edx
je 0x410947
cmp byte [eax], 0x2d
mov edx, 1
jne 0x410947
movzx ecx, byte [eax + 1]
test cl, cl
je 0x410947
cmp cl, 0x2d
je 0x4109a0
mov edx, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0xc], edx
mov edx, dword [edi + ebx*4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp], edx
call fcn.00410280
test eax, eax
js 0x410b3f
add ebx, eax
mov edx, 1
jmp 0x410947
cmp byte [eax + 2], 0
jne 0x41096c
xor edx, edx
jmp 0x410947
mov dword [0x131b210], 0
call sub.KERNEL32.dll_GetCommandLineW
mov dword [esp + 4], 0x131b210
mov dword [esp], eax
call sub.SHELL32.DLL_CommandLineToArgvW
sub esp, 8
test eax, eax
mov edi, eax
je 0x410b1d
mov ebx, dword [0x131b210]
test ebx, ebx
jle 0x410b1d
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x2c], ebp
mov ebp, esi
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WideCharToMultiByte
add esi, eax
mov eax, dword [0x131b210]
sub esp, 0x20
cmp ebx, eax
jl 0x4109f6
mov ecx, esi
mov esi, ebp
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + eax*4 + 4]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.00aa0290
mov edx, dword [0x131b210]
mov ecx, dword [esp + 0x24]
lea ebx, [eax + edx*4 + 4]
test eax, eax
mov dword [0x131b20c], eax
mov dword [esp + 0x2c], ebx
je 0x410b58
xor esi, esi
xor ebx, ebx
test edx, edx
jle 0x410afa
mov dword [esp + 0x28], ebp
mov ebp, ecx
jmp 0x410a96
mov eax, dword [0x131b20c]
mov edx, dword [esp + 0x2c]
add edx, esi
mov dword [eax + ebx*4], edx
mov eax, ebp
sub eax, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
add esi, eax
cmp ebx, dword [0x131b210]
jl 0x410a91
mov ebp, dword [esp + 0x28]
shl ebx, 2
mov eax, dword [0x131b20c]
mov dword [eax + ebx], 0
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
mov esi, dword [0x131b210]
mov edi, dword [0x131b20c]
sub esp, 4
jmp 0x410893
mov edi, dword [esp + 0x58]
jmp 0x410893
mov dword [esp + 0x24], eax
mov dword [esp], 1
call fcn.00403370
mov eax, dword [esp + 0x24]
jmp 0x410923
mov dword [esp + 0x24], eax
mov dword [esp], 1
call fcn.00403370
mov eax, dword [esp + 0x24]
jmp 0x410996
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
sub esp, 4
mov edi, dword [esp + 0x58]
jmp 0x410893