Function at 0x409e50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
test byte [0x413108], 2
jne 0x409e70
call fcn.00401290
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetCommandLineA
mov dword [ebp - 0x44], esp
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + eax + 0x11]
shr eax, 4
shl eax, 4
call fcn.0040a9f0
xor edx, edx
sub esp, eax
mov eax, dword [0x413108]
mov dword [ebp - 0x1c], 0
lea ebx, [esp + 0x10]
mov dword [ebp - 0x30], 0
and eax, 0x4400
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0
or eax, 0x10
mov dword [ebp - 0x40], eax
mov eax, ebx
add edi, 1
movsx esi, byte [edi - 1]
mov ebx, esi
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x409f10
lea ecx, [ebx - 0x22]
cmp cl, 0x5d
ja case.0x409ee2.1
movzx ecx, cl
jmp dword [ecx*4 + 0x4164f0]
cmp dword [ebp - 0x30], 0x27
je 0x40a174
add edi, 1
movsx esi, byte [edi - 1]
add edx, 1
mov ebx, esi
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x409ed3
lea esi, [esi]
test edx, edx
je 0x40a1a1
add edx, eax
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, edx
jne 0x409f20
cmp dword [ebp - 0x3c], edx
jb 0x40a130
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40a130
mov eax, dword [ebp - 0x24]
mov dword [0x41b004], eax
mov eax, dword [ebp - 0x20]
mov dword [section..bss], eax
mov esp, dword [ebp - 0x44]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [edx - 1]
mov dword [ebp - 0x34], esi
test byte [0x413108], 0x20
jne 0x409fb6
mov esi, 1
test edx, edx
je 0x40a1af
mov edx, dword [ebp - 0x34]
lea edx, [eax + edx + 1]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, edx
jne 0x409f83
mov eax, esi
mov ecx, edx
test al, al
je 0x409f9c
mov byte [edx], 0x7f
lea ecx, [edx + 1]
lea eax, [ecx + 1]
mov byte [ecx], bl
xor edx, edx
jmp 0x409ec3
lea ecx, [edx - 1]
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp - 0x30]
test esi, esi
setne cl
cmp dword [ebp - 0x2c], 0x7f
mov esi, ecx
sete byte [ebp - 0x2c]
movzx ecx, byte [ebp - 0x2c]
or esi, ecx
test edx, edx
jne 0x409f7c
mov edx, eax
jmp 0x409f8e
test byte [0x413108], 0x10
je case.0x409ee2.1
mov ecx, edx
sar ecx, 1
je 0x40a1a8
add ecx, eax
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ecx
jne 0x409ff5
cmp dword [ebp - 0x30], 0x22
je 0x40a00f
and edx, 1
je 0x40a17f
lea eax, [ecx + 1]
mov byte [ecx], 0x27
xor edx, edx
mov dword [ebp - 0x38], 1
jmp 0x409ec3
mov ecx, edx
sar ecx, 1
je 0x40a19a
add ecx, eax
nop
add eax, 1
mov byte [eax - 1], 0x5c
cmp ecx, eax
jne 0x40a030
cmp dword [ebp - 0x30], 0x27
je 0x40a160
and edx, 1
jne 0x40a160
xor dword [ebp - 0x30], 0x22
mov eax, ecx
xor edx, edx
mov dword [ebp - 0x38], 1
jmp 0x409ec3
lea esi, [eax + edx]
test edx, edx
je 0x40a193
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, esi
jne 0x40a070
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x40a0dd
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x40a0c0
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax]
test byte [eax + edx*2], 0x40
je 0x40a0d7
cmp dword [ebp - 0x3c], esi
jb 0x40a0f0
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x40a0f0
mov eax, esi
xor edx, edx
mov dword [ebp - 0x38], 0
jmp 0x409ec3
mov dword [esp + 4], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x40a09c
cmp dword [ebp - 0x2c], 9
je 0x40a09c
lea eax, [esi + 1]
mov byte [esi], bl
xor edx, edx
jmp 0x409ec3
lea eax, [ebp - 0x28]
mov byte [esi], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], ebx
mov esi, dword [ebp - 0x3c]
or ebx, 1
mov dword [esp], esi
call fcn.0040bec0
mov dword [ebp - 0x40], ebx
mov eax, esi
xor edx, edx
mov dword [ebp - 0x38], 0
jmp 0x409ec3
lea eax, [ebp - 0x28]
mov byte [edx], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.0040bec0
jmp 0x409f3f
lea eax, [ecx + 1]
mov byte [ecx], 0x22
xor edx, edx
mov dword [ebp - 0x38], 1
jmp 0x409ec3
mov byte [eax], 0x5c
add eax, 1
jmp 0x409ec3
xor dword [ebp - 0x30], 0x27
mov eax, ecx
xor edx, edx
mov dword [ebp - 0x38], 1
jmp 0x409ec3
mov esi, eax
jmp 0x40a07b
mov ecx, eax
jmp 0x40a03b
mov edx, eax
jmp 0x409f2b
mov ecx, eax
jmp 0x40a000
mov edx, eax
jmp 0x409f96