Function at 0x404f00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
test byte [0x40d0d0], 2
je 0x4051d0
call sub.KERNEL32.dll_GetCommandLineA
mov dword [ebp - 0x40], esp
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + eax + 0x11]
and eax, 0xfffffff0
call fcn.004059f0
sub esp, eax
lea eax, [esp + 0x10]
mov edx, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [0x40d0d0]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
and eax, 0x40
cmp eax, 1
sbb eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
and dword [ebp - 0x38], 0xffffc000
add dword [ebp - 0x38], 0x4010
mov dword [ebp - 0x2c], edx
add esi, 1
movzx ebx, byte [esi - 1]
movsx ecx, bl
test ecx, ecx
je 0x405000
cmp bl, 0x3f
je 0x4050a1
jg 0x405080
cmp bl, 0x27
je 0x405180
cmp bl, 0x2a
je 0x4050a1
cmp bl, 0x22
jne 0x4050e5
mov ebx, eax
sar ebx, 1
je 0x4051f7
mov edx, dword [ebp - 0x2c]
add ebx, edx
nop
add edx, 1
cmp edx, ebx
mov byte [edx - 1], 0x5c
jne 0x404fc0
test al, 1
jne 0x405066
cmp dword [ebp - 0x30], 0x27
je 0x405066
add esi, 1
xor eax, eax
mov dword [ebp - 0x2c], ebx
movzx ebx, byte [esi - 1]
xor dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 1
movsx ecx, bl
test ecx, ecx
jne 0x404f85
lea esi, [esi]
test eax, eax
mov edx, dword [ebp - 0x2c]
je 0x4051ff
add eax, edx
lea esi, [esi]
add edx, 1
cmp edx, eax
mov byte [edx - 1], 0x5c
jne 0x405010
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x405027
cmp dword [ebp - 0x3c], eax
jae 0x40504b
mov byte [eax], 0
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004069b0
mov eax, dword [ebp - 0x24]
mov dword [0x413004], eax
mov eax, dword [ebp - 0x20]
mov dword [section..bss], eax
mov esp, dword [ebp - 0x40]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 1]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov byte [ebx], 0x22
mov dword [ebp - 0x34], 1
jmp 0x404f77
cmp bl, 0x5c
je 0x4051c8
cmp bl, 0x7f
je 0x4050a1
cmp bl, 0x5b
jne 0x4050e5
test byte [0x40d0d0], 0x20
mov edi, 1
je 0x4050ab
mov edx, dword [ebp - 0x30]
test edx, edx
setne dl
mov edi, edx
test eax, eax
je 0x4051e7
mov edx, dword [ebp - 0x2c]
add eax, edx
add edx, 1
cmp edx, eax
mov byte [edx - 1], 0x5c
jne 0x4050b8
mov edx, edi
test dl, dl
jne 0x405170
cmp ecx, 0x7f
je 0x405170
lea ecx, [eax + 1]
mov byte [eax], bl
xor eax, eax
mov dword [ebp - 0x2c], ecx
jmp 0x404f77
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add edi, eax
test eax, eax
je 0x4051ef
add edx, 1
cmp edx, edi
mov byte [edx - 1], 0x5c
jne 0x4050f5
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405160
mov dword [esp], ecx
call sub.msvcrt.dll_isspace
test eax, eax
je 0x405160
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x405123
cmp dword [ebp - 0x3c], edi
jae 0x4051dd
lea eax, [ebp - 0x28]
mov byte [edi], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x3c]
mov dword [esp], edi
call fcn.004069b0
xor eax, eax
or dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], 0
jmp 0x404f77
lea eax, [edi + 1]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov byte [edi], bl
jmp 0x404f77
mov byte [eax], 0x7f
add eax, 1
jmp 0x4050d6
test byte [0x40d0d0], 0x10
je 0x4050e5
mov ebx, eax
sar ebx, 1
je 0x405206
mov edx, dword [ebp - 0x2c]
add ebx, edx
add edx, 1
cmp edx, ebx
mov byte [edx - 1], 0x5c
jne 0x405198
test al, 1
jne 0x4051b1
cmp dword [ebp - 0x30], 0x22
jne 0x404fdd
lea eax, [ebx + 1]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov byte [ebx], 0x27
mov dword [ebp - 0x34], 1
jmp 0x404f77
add eax, 1
jmp 0x404f77
call fcn.00401260
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], edi
xor eax, eax
jmp 0x404f77
mov eax, dword [ebp - 0x2c]
jmp 0x4050c3
mov edi, dword [ebp - 0x2c]
jmp 0x405100
mov ebx, dword [ebp - 0x2c]
jmp 0x404fcb
mov eax, edx
jmp 0x40501b
mov ebx, dword [ebp - 0x2c]
jmp 0x4051a3