Function at 0x107056a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 1
jge 0x1070590
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1017aa8
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
jmp 0x1070757
push ebx
mov ebx, dword [ebp + 8]
or dword [ebp + 8], 0xffffffff
push esi
mov esi, dword [sym.imp.msvcrt.dll__stricmp]
push edi
mov edi, dword [ebx]
inc edi
push 0x1017a98
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10705c9
or dword [0x1251b0c], 0x30
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
push 0x1017a8c
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10705ea
or dword [0x1251b0c], 0x40010
mov dword [ebp + 8], 1
jmp 0x10705bf
push 0x1017a84
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x107060b
or dword [0x1251b0c], 0x40001
mov dword [ebp + 8], 1
jmp 0x10705bf
push 0x1017a80
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1070629
or byte [0x1251b0e], 2
mov dword [ebp + 8], 1
jmp 0x10705bf
push 4
push 0x1017a78
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1070619
push 8
push 0x1017a68
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1070666
or byte [0x1251b0d], 1
mov dword [ebp + 8], 1
jmp 0x10705bf
push 8
push 0x1017a5c
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x107068e
or byte [0x1251b0d], 2
mov dword [ebp + 8], 1
jmp 0x10705bf
push 0x1017a24
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10706af
or dword [0x1251b0c], 2
mov dword [ebp + 8], 1
jmp 0x10705bf
push 0x1017a54
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10706f6
push 2
pop esi
cmp dword [ebp + 0xc], esi
jl 0x1070752
mov ebx, dword [ebx + 4]
push 0x107ee38
push 0x1251b08
push 0x1017a4c
push ebx
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
cmp eax, 1
je 0x10706ee
cmp eax, esi
jne 0x1070752
mov dword [ebp + 8], esi
jmp 0x10705bf
push 0x1017a44
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x107071b
push 2
pop esi
cmp dword [ebp + 0xc], esi
jl 0x1070752
mov ebx, dword [ebx + 4]
push 0x107ee3c
push 0x100203c
jmp 0x1070782
push 0x1017a40
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x107075f
push 2
pop esi
cmp dword [ebp + 0xc], esi
jl 0x1070752
mov ebx, dword [ebx + 4]
push 0x107ee44
push 0x107ee40
push 0x1017a38
push ebx
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
cmp eax, 1
jge 0x10706ee
call fcn.010702b5
push 1
call dword [sym.imp.msvcrt.dll_exit]
push 0x1017a34
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1070794
push 2
pop esi
cmp dword [ebp + 0xc], esi
jl 0x1070752
mov ebx, dword [ebx + 4]
push 0x107ee48
push 0x10023ec
push ebx
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0xc
cmp eax, 1
jmp 0x10706ec
push 6
push 0x1017a2c
push edi
mov edi, dword [sym.imp.msvcrt.dll__strnicmp]
call edi
add esp, 0xc
test eax, eax
jne 0x10705bf
cmp dword [ebp + 0xc], 2
jl 0x1070752
mov esi, dword [ebx + 4]
cmp byte [esi], al
je 0x1070844
mov ebx, dword [sym.imp.msvcrt.dll_sscanf]
push 2
push 0x1017a28
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1070800
lea eax, [ebp + 0xc]
push eax
inc esi
inc esi
push 0x10023f0
push esi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x1070752
push dword [ebp + 0xc]
mov ecx, 0x1251b18
call fcn.010704f1
jmp 0x1070828
lea eax, [ebp - 8]
push eax
push 0x100206c
push esi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x1070752
push dword [ebp - 4]
mov ecx, 0x1251b14
push dword [ebp - 8]
call fcn.01070442
mov al, byte [esi]
test al, al
je 0x1070844
cmp al, 0x2c
je 0x1070839
inc esi
mov al, byte [esi]
test al, al
jne 0x107082e
cmp byte [esi], 0
je 0x1070844
inc esi
cmp byte [esi], 0
jne 0x10707c6
mov dword [ebp + 8], 2
jmp 0x10705bf