Function at 0x407640
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xc], 0
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
je 0x407908
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
cmp byte [esi], 0x25
jne 0x4078ee
push esi
call ebx
mov esi, eax
mov al, byte [esi]
cmp al, 0x25
je 0x4078ee
xor edi, edi
test al, al
mov dword [ebp - 8], edi
je 0x4076c9
cmp al, 0x23
jne 0x407695
add dword [ebp - 0xc], 2
jmp 0x4076b8
cmp al, 0x2a
jne 0x4076a8
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x4076b8
cmp al, 0x2d
je 0x4076b8
cmp al, 0x2b
je 0x4076b8
cmp al, 0x30
je 0x4076b8
cmp al, 0x20
jne 0x4076c3
push esi
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40768b
cmp dword [ebp - 8], 0
jne 0x4076ed
push esi
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
jmp 0x4076e7
push eax
call fcn.00407393
test eax, eax
je 0x4076ed
push esi
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x4076d8
and dword [ebp - 4], 0
cmp byte [esi], 0x2e
jne 0x407737
push esi
call ebx
mov esi, eax
cmp byte [esi], 0x2a
push esi
jne 0x407714
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov dword [ebp - 4], eax
call ebx
mov esi, eax
jmp 0x407737
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
jmp 0x407731
push eax
call fcn.00407393
test eax, eax
je 0x407737
push esi
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x407722
mov al, byte [esi]
and dword [ebp - 0x10], 0
cmp al, 0x49
jne 0x407759
cmp byte [esi + 1], 0x36
jne 0x407759
cmp byte [esi + 2], 0x34
jne 0x407759
add esi, 3
mov dword [ebp - 0x10], 0x40000
jmp 0x407789
movsx eax, al
sub eax, 0x46
je 0x407784
sub eax, 6
je 0x407784
dec eax
dec eax
je 0x407784
sub eax, 0x1a
je 0x40777d
sub eax, 4
jne 0x407789
mov dword [ebp - 0x10], 0x20000
jmp 0x407784
mov dword [ebp - 0x10], 0x10000
push esi
call ebx
mov esi, eax
movsx eax, byte [esi]
or eax, dword [ebp - 0x10]
mov ecx, 0x10063
cmp eax, ecx
jg 0x407831
je 0x407850
sub eax, 0x43
je 0x407850
push 0x10
pop ecx
sub eax, ecx
je 0x407819
sub eax, ecx
je 0x407850
sub eax, ecx
je 0x407859
sub eax, 0xffd0
je 0x407850
sub eax, ecx
je 0x407859
movsx eax, byte [esi]
cmp eax, 0x6e
jg 0x4078b6
je 0x4078b0
cmp eax, 0x47
je 0x40789d
cmp eax, 0x58
je 0x4078c8
cmp eax, 0x64
je 0x4078c8
jle 0x4078e9
cmp eax, 0x67
jle 0x40789d
cmp eax, 0x69
jmp 0x4078c6
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
test eax, eax
je 0x407867
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
jmp 0x407873
sub eax, 0x10073
je 0x407859
sub eax, 0xffd0
je 0x407850
sub eax, 0x10
je 0x407819
sub eax, 0x10
je 0x407850
sub eax, 0x10
jne 0x4077d5
jmp 0x407819
add dword [ebp + 0xc], 4
push 2
pop edi
jmp 0x407885
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
test eax, eax
jne 0x40786c
push 6
pop edi
jmp 0x407885
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 1
jge 0x40787d
xor edi, edi
inc edi
test edi, edi
je 0x4077d5
cmp edi, dword [ebp - 8]
jg 0x40788d
mov edi, dword [ebp - 8]
cmp dword [ebp - 4], 0
je 0x4078e9
cmp edi, dword [ebp - 4]
jl 0x4078e9
mov edi, dword [ebp - 4]
jmp 0x4078e9
push 0x4018b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4078e9
add dword [ebp + 0xc], 4
jmp 0x4078e9
sub eax, 0x6f
je 0x4078c8
dec eax
je 0x4078d4
sub eax, 5
je 0x4078c8
sub eax, 3
jne 0x4078e9
test byte [ebp - 0xe], 4
je 0x4078d4
add dword [ebp + 0xc], 8
jmp 0x4078d8
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push 0x20
add eax, ecx
pop edi
cmp eax, edi
jl 0x4078e9
mov edi, eax
add dword [ebp - 0xc], edi
jmp 0x4078f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp - 0xc], eax
push esi
call ebx
mov esi, eax
cmp byte [esi], 0
jne 0x40766a
pop edi
pop ebx
mov esi, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov ecx, esi
call fcn.004075a2
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040760e
pop esi
leave
ret 8