Function at 0x401800
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 0x401af0
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.00402320
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 0x4018f0
cmp bl, 0x3f
je 0x401a03
jg 0x401940
cmp bl, 0x27
je 0x401a35
cmp bl, 0x2a
je 0x401a03
cmp bl, 0x22
jne 0x4019a0
mov ebx, ecx
sar ebx, 1
je 0x401b68
add ebx, eax
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ebx
jne 0x4018b3
cmp dword [ebp - 0x2c], 0x27
je 0x401a80
and ecx, 1
jne 0x401a80
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 0x40187d
lea esi, [esi]
test ecx, ecx
je 0x401b6f
add ecx, eax
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ecx
jne 0x401900
cmp dword [ebp - 0x34], ecx
jb 0x401ac1
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x401ac1
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 0x401a23
cmp bl, 0x7f
je 0x401a03
cmp bl, 0x5b
jne 0x4019a0
test byte [0x404004], 0x20
jne 0x401a03
test ecx, ecx
lea edi, [ecx - 1]
mov edx, 1
je 0x401992
lea ecx, [eax + edi + 1]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, ecx
jne 0x401974
test dl, dl
jne 0x401990
lea eax, [ecx + 1]
mov byte [ecx], bl
xor ecx, ecx
jmp 0x401870
mov eax, ecx
lea ecx, [eax + 1]
mov byte [eax], 0x7f
jmp 0x401983
test ecx, ecx
lea edi, [eax + ecx]
je 0x401b4a
nop
lea esi, [esi]
add eax, 1
mov byte [eax - 1], 0x5c
cmp eax, edi
jne 0x4019b0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x4019f7
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
je 0x401a94
mov dword [esp + 4], 0x40
mov dword [esp], edx
mov dword [ebp - 0x40], edx
call sym.__isctype
test eax, eax
jne 0x401aa5
mov edx, dword [ebp - 0x40]
cmp edx, 9
je 0x401aa5
lea eax, [edi + 1]
mov byte [edi], bl
xor ecx, ecx
jmp 0x401870
test ecx, ecx
lea edi, [ecx - 1]
je 0x401b51
cmp edx, 0x7f
mov edx, dword [ebp - 0x2c]
sete cl
test edx, edx
setne dl
or edx, ecx
jmp 0x401970
cmp dword [ebp - 0x2c], 0x27
je 0x401b00
add ecx, 1
jmp 0x401870
test byte [0x404004], 0x10
je 0x4019a0
mov ebx, ecx
sar ebx, 1
je 0x401b76
add ebx, eax
nop
add eax, 1
mov byte [eax - 1], 0x5c
cmp ebx, eax
jne 0x401a50
cmp dword [ebp - 0x2c], 0x22
je 0x401a6a
and ecx, 1
je 0x4018d1
lea eax, [ebx + 1]
mov byte [ebx], 0x27
xor ecx, ecx
mov dword [ebp - 0x30], 1
jmp 0x401870
lea eax, [ebx + 1]
mov byte [ebx], 0x22
xor ecx, ecx
mov dword [ebp - 0x30], 1
jmp 0x401870
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
test byte [eax + edx*2], 0x40
je 0x4019ee
cmp dword [ebp - 0x34], edi
jb 0x401b10
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x401b10
mov eax, edi
xor ecx, ecx
mov dword [ebp - 0x30], 0
jmp 0x401870
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 0x40191f
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 0x401870
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 0x401870
mov edi, eax
jmp 0x4019bb
mov edi, dword [ebp - 0x2c]
cmp edx, 0x7f
sete cl
test edi, edi
setne dl
or edx, ecx
mov ecx, eax
jmp 0x40197f
mov ebx, eax
jmp 0x4018be
mov ecx, eax
jmp 0x40190b
mov ebx, eax
jmp 0x401a5b