Function at 0x12583e3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
je 0x12586d6
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
cmp word [esi], 0x25
jne 0x12586c2
push esi
call ebx
mov esi, eax
mov ax, word [esi]
cmp ax, 0x25
je 0x12586c2
xor edi, edi
cmp ax, di
mov dword [ebp - 0xc], edi
je 0x1258480
cmp ax, 0x23
jne 0x1258440
add dword [ebp - 4], 2
jmp 0x125846d
cmp ax, 0x2a
jne 0x1258455
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
jmp 0x125846d
cmp ax, 0x2d
je 0x125846d
cmp ax, 0x2b
je 0x125846d
cmp ax, 0x30
je 0x125846d
cmp ax, 0x20
jne 0x125847a
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x1258434
cmp dword [ebp - 0xc], 0
jne 0x12584a5
push esi
call sub.msvcrt.dll__wtoi
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
jmp 0x125849d
push eax
call fcn.01257e14
test eax, eax
je 0x12584a5
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x125848e
and dword [ebp - 8], 0
cmp word [esi], 0x2e
jne 0x12584f2
push esi
call ebx
mov esi, eax
cmp word [esi], 0x2a
push esi
jne 0x12584ce
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
jmp 0x12584f2
call sub.msvcrt.dll__wtoi
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
jmp 0x12584ea
push eax
call fcn.01257e14
test eax, eax
je 0x12584f2
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x12584db
mov ax, word [esi]
and dword [ebp - 0x10], 0
cmp ax, 0x49
jne 0x1258519
cmp word [esi + 2], 0x36
jne 0x1258519
cmp word [esi + 4], 0x34
jne 0x1258519
add esi, 6
mov dword [ebp - 0x10], 0x40000
jmp 0x1258549
movzx eax, ax
sub eax, 0x46
je 0x1258544
sub eax, 6
je 0x1258544
dec eax
dec eax
je 0x1258544
sub eax, 0x1a
je 0x125853d
sub eax, 4
jne 0x1258549
mov dword [ebp - 0x10], 0x20000
jmp 0x1258544
mov dword [ebp - 0x10], 0x10000
push esi
call ebx
mov esi, eax
movzx eax, word [esi]
or eax, dword [ebp - 0x10]
mov ecx, 0x10063
cmp eax, ecx
jg 0x12585f0
je 0x1258624
sub eax, 0x43
je 0x1258624
push 0x10
pop ecx
sub eax, ecx
je 0x125862d
sub eax, ecx
je 0x1258624
sub eax, ecx
je 0x12585d9
sub eax, 0xffd0
je 0x1258624
sub eax, ecx
je 0x125862d
movzx eax, word [esi]
cmp eax, 0x6e
jg 0x125868a
je 0x1258684
cmp eax, 0x47
je 0x1258671
cmp eax, 0x58
je 0x125869c
cmp eax, 0x64
je 0x125869c
jle 0x12586bd
cmp eax, 0x67
jle 0x1258671
cmp eax, 0x69
jmp 0x125869a
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
test eax, eax
je 0x125863b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1258647
sub eax, 0x10073
je 0x125862d
sub eax, 0xffd0
je 0x1258624
sub eax, 0x10
je 0x125860d
sub eax, 0x10
je 0x1258624
sub eax, 0x10
jne 0x1258595
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
test eax, eax
je 0x125863b
push eax
call sub.msvcrt.dll_wcslen
pop ecx
jmp 0x1258647
add dword [ebp + 0xc], 4
push 2
pop edi
jmp 0x1258659
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
test eax, eax
jne 0x1258640
push 6
pop edi
jmp 0x1258659
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 1
jge 0x1258651
xor edi, edi
inc edi
test edi, edi
je 0x1258595
cmp edi, dword [ebp - 0xc]
jg 0x1258661
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], 0
je 0x12586bd
cmp edi, dword [ebp - 8]
jl 0x12586bd
mov edi, dword [ebp - 8]
jmp 0x12586bd
push 0x102c178
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x12586bd
add dword [ebp + 0xc], 4
jmp 0x12586bd
sub eax, 0x6f
je 0x125869c
dec eax
je 0x12586a8
sub eax, 5
je 0x125869c
sub eax, 3
jne 0x12586bd
test byte [ebp - 0xe], 4
je 0x12586a8
add dword [ebp + 0xc], 8
jmp 0x12586ac
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0x20
add eax, ecx
pop edi
cmp eax, edi
jl 0x12586bd
mov edi, eax
add dword [ebp - 4], edi
jmp 0x12586c5
inc dword [ebp - 4]
push esi
call ebx
mov esi, eax
cmp word [esi], 0
jne 0x125840e
pop edi
pop ebx
mov esi, dword [ebp - 0x14]
push dword [ebp - 4]
mov ecx, esi
call fcn.01258284
test eax, eax
je 0x1258706
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [esi]
call sub.msvcrt.dll__vsnwprintf
add esp, 0x10
push 0xffffffffffffffff
mov ecx, esi
call fcn.012582f1
xor eax, eax
inc eax
pop esi
leave
ret 8