Function at 0x4013f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
cmp eax, 1
jne 0x401408
xor ecx, ecx
call fcn.00401390
mov ebx, dword [ebp + 0xc]
mov edx, 0x309
mov dword [ebp - 8], 0xa
mov dword [ebp - 4], edx
nop word [eax + eax]
mov ecx, dword [0x40401c]
cmp ecx, 1
jne 0x40148a
mov esi, dword [0x404018]
cmp esi, eax
jge 0x4015c1
mov eax, dword [ebx + esi*4]
cmp byte [eax], 0x2d
mov bl, byte [eax + 1]
jne 0x4015c1
test bl, bl
je 0x4015c1
movsx esi, bl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
je 0x401478
push esi
push str.p:w:
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x401577
cmp bl, 0x2d
je 0x401594
mov ecx, dword [0x40401c]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x404018]
mov eax, dword [ebx + eax*4]
movsx edi, byte [eax + ecx]
cmp edi, 0x3a
je 0x4015e6
push edi
push str.p:w:
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x4015e6
cmp byte [eax + 1], 0x3a
jne 0x401500
mov edx, dword [0x404018]
mov eax, dword [0x40401c]
mov ecx, dword [ebp + 8]
inc eax
add eax, dword [ebx + edx*4]
cmp byte [eax], 0
je 0x4014d8
lea esi, [edx + 1]
jmp 0x4014ee
lea eax, [edx + 1]
mov dword [0x404018], eax
cmp eax, ecx
jge 0x4015a3
lea esi, [eax + 1]
mov eax, dword [ebx + eax*4]
mov dword [0x404018], esi
mov dword [0x40401c], 1
jmp 0x401532
mov esi, dword [0x404018]
mov ecx, dword [0x40401c]
inc ecx
mov dword [0x40401c], ecx
mov eax, dword [ebx + esi*4]
cmp byte [ecx + eax], 0
jne 0x40152d
inc esi
mov dword [0x40401c], 1
mov dword [0x404018], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [0x404384], eax
cmp edi, 0xffffffff
je 0x401580
cmp edi, 0x70
je 0x401562
cmp edi, 0x77
jne 0x40162f
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, dword [ebp - 4]
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
jmp 0x401420
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movzx edx, ax
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x401417
mov esi, dword [0x404018]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [esi + 2]
cmp ecx, eax
jge 0x4015c6
mov ecx, str.bad_arg_count
call fcn.00401390
mov esi, dword [0x404018]
inc esi
mov dword [0x404018], esi
jmp 0x40157d
push dword [ebx]
push edi
push str.Option__c_of__s_requires_argument._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
jmp 0x401625
mov ecx, dword [ebp + 8]
jmp 0x401583
imul eax, dword [ebp - 8], 0x64
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ecx + esi*4 + 4]
mov ecx, dword [ecx + esi*4]
call fcn.004010d0
add esp, 0xc
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
push dword [ebx]
push str.Illegal__s_option:__c._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
mov edx, dword [0x404018]
add esp, 0x10
mov ecx, dword [0x40401c]
inc ecx
mov dword [0x40401c], ecx
mov eax, dword [ebx + edx*4]
cmp byte [ecx + eax], 0
jne 0x40162f
inc edx
mov dword [0x404018], edx
mov dword [0x40401c], 1
mov ecx, str.bad_option
call fcn.00401390
int3