Function at 0x4014c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
test byte [0x404004], 2
je 0x4017b0
call sym._GetCommandLineA_0
mov dword [ebp - 0x3c], esp
mov dword [esp], eax
mov esi, eax
call sym._strlen
lea eax, [eax + eax + 0x11]
shr eax, 4
shl eax, 4
call fcn.00401fe0
xor ecx, ecx
sub esp, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
lea eax, [esp + 0x10]
mov dword [ebp - 0x30], 0
mov edi, eax
mov dword [ebp - 0x34], eax
mov eax, dword [0x404004]
and eax, 0x4400
or eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, edi
nop
lea esi, [esi]
add esi, 1
movsx edx, byte [esi - 1]
test edx, edx
mov ebx, edx
je 0x4015b0
cmp bl, 0x3f
je 0x4016c3
jg 0x401600
cmp bl, 0x27
je 0x4016f5
cmp bl, 0x2a
je 0x4016c3
cmp bl, 0x22
jne 0x401660
mov ebx, ecx
sar ebx, 1
je 0x401828
add ebx, eax
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ebx
jne 0x401573
cmp dword [ebp - 0x2c], 0x27
je 0x401740
and ecx, 1
jne 0x401740
add esi, 1
xor dword [ebp - 0x2c], edx
xor ecx, ecx
movsx edx, byte [esi - 1]
mov eax, ebx
mov dword [ebp - 0x30], 1
test edx, edx
mov ebx, edx
jne 0x40153d
lea esi, [esi]
test ecx, ecx
je 0x40182f
add ecx, eax
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ecx
jne 0x4015c0
cmp dword [ebp - 0x34], ecx
jb 0x401781
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x401781
mov eax, dword [ebp - 0x24]
mov dword [0x407004], eax
mov eax, dword [ebp - 0x20]
mov dword [section..bss], eax
mov esp, dword [ebp - 0x3c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp bl, 0x5c
je 0x4016e3
cmp bl, 0x7f
je 0x4016c3
cmp bl, 0x5b
jne 0x401660
test byte [0x404004], 0x20
jne 0x4016c3
test ecx, ecx
lea edi, [ecx - 1]
mov edx, 1
je 0x401652
lea ecx, [eax + edi + 1]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ecx
jne 0x401634
test dl, dl
jne 0x401650
lea eax, [ecx + 1]
mov byte [ecx], bl
xor ecx, ecx
jmp 0x401530
mov eax, ecx
lea ecx, [eax + 1]
mov byte [eax], 0x7f
jmp 0x401643
test ecx, ecx
lea edi, [eax + ecx]
je 0x40180a
nop
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, edi
jne 0x401670
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x4016b7
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
je 0x401754
mov dword [esp + 4], 0x40
mov dword [esp], edx
mov dword [ebp - 0x40], edx
call sym.__isctype
test eax, eax
jne 0x401765
mov edx, dword [ebp - 0x40]
cmp edx, 9
je 0x401765
lea eax, [edi + 1]
mov byte [edi], bl
xor ecx, ecx
jmp 0x401530
test ecx, ecx
lea edi, [ecx - 1]
je 0x401811
cmp edx, 0x7f
mov edx, dword [ebp - 0x2c]
sete cl
test edx, edx
setne dl
or edx, ecx
jmp 0x401630
cmp dword [ebp - 0x2c], 0x27
je 0x4017c0
add ecx, 1
jmp 0x401530
test byte [0x404004], 0x10
je 0x401660
mov ebx, ecx
sar ebx, 1
je 0x401836
add ebx, eax
nop
add eax, 1
mov byte [eax - 1], 0x5c
cmp ebx, eax
jne 0x401710
cmp dword [ebp - 0x2c], 0x22
je 0x40172a
and ecx, 1
je 0x401591
lea eax, [ebx + 1]
mov byte [ebx], 0x27
xor ecx, ecx
mov dword [ebp - 0x30], 1
jmp 0x401530
lea eax, [ebx + 1]
mov byte [ebx], 0x22
xor ecx, ecx
mov dword [ebp - 0x30], 1
jmp 0x401530
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
test byte [eax + edx*2], 0x40
je 0x4016ae
cmp dword [ebp - 0x34], edi
jb 0x4017d0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4017d0
mov eax, edi
xor ecx, ecx
mov dword [ebp - 0x30], 0
jmp 0x401530
lea eax, [ebp - 0x28]
mov byte [ecx], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym.___mingw_glob
jmp 0x4015df
call sym.__mingw32_init_mainargs
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [eax], 0x5c
add eax, 1
jmp 0x401530
lea eax, [ebp - 0x28]
mov byte [edi], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov edi, dword [ebp - 0x38]
mov dword [esp + 4], edi
mov ebx, dword [ebp - 0x34]
or edi, 1
mov dword [esp], ebx
call sym.___mingw_glob
mov dword [ebp - 0x38], edi
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x30], 0
jmp 0x401530
mov edi, eax
jmp 0x40167b
mov edi, dword [ebp - 0x2c]
cmp edx, 0x7f
sete cl
test edi, edi
setne dl
or edx, ecx
mov ecx, eax
jmp 0x40163f
mov ebx, eax
jmp 0x40157e
mov ecx, eax
jmp 0x4015cb
mov ebx, eax
jmp 0x40171b