Function at 0x4098ca
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
mov dword [ebp - 0x14], eax
je 0x409bb2
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [edi], 0x25
jne 0x409b99
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
cmp eax, 0x25
je 0x409b99
xor esi, esi
mov dword [ebp - 0xc], esi
cmp ax, si
je 0x409960
cmp ax, 0x23
jne 0x409921
add dword [ebp - 4], 2
jmp 0x40994e
cmp ax, 0x2a
jne 0x409936
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
jmp 0x40994e
cmp ax, 0x2d
je 0x40994e
cmp ax, 0x2b
je 0x40994e
cmp ax, 0x30
je 0x40994e
cmp ax, 0x20
jne 0x40995b
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x409915
cmp dword [ebp - 0xc], esi
jne 0x409987
push edi
call fcn.00413205
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x40997f
movzx eax, ax
push eax
call fcn.004131dc
pop ecx
test eax, eax
je 0x409987
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x40996c
and dword [ebp - 8], esi
cmp word [edi], 0x2e
jne 0x4099d5
push edi
call ebx
mov edi, eax
cmp word [edi], 0x2a
push edi
jne 0x4099af
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
call ebx
mov edi, eax
jmp 0x4099d5
call fcn.00413205
pop ecx
mov dword [ebp - 8], eax
jmp 0x4099cd
movzx eax, ax
push eax
call fcn.004131dc
pop ecx
test eax, eax
je 0x4099d5
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x4099ba
movzx eax, word [edi]
and dword [ebp - 0x10], esi
cmp eax, 0x49
jne 0x4099fa
cmp word [edi + 2], 0x36
jne 0x4099fa
cmp word [edi + 4], 0x34
jne 0x4099fa
add edi, 6
mov dword [ebp - 0x10], 0x40000
jmp 0x409a27
sub eax, 0x46
je 0x409a22
sub eax, 6
je 0x409a22
dec eax
dec eax
je 0x409a22
sub eax, 0x1a
je 0x409a1b
sub eax, 4
jne 0x409a27
mov dword [ebp - 0x10], 0x20000
jmp 0x409a22
mov dword [ebp - 0x10], 0x10000
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
or eax, dword [ebp - 0x10]
mov ecx, 0x10063
cmp eax, ecx
jg 0x409ae0
je 0x409ad7
sub eax, 0x43
je 0x409ad7
push 0x10
pop ecx
sub eax, ecx
je 0x409b18
sub eax, ecx
je 0x409ad7
sub eax, ecx
je 0x409abb
sub eax, 0xffd0
je 0x409ad7
sub eax, ecx
je 0x409b18
movzx eax, word [edi]
cmp eax, 0x69
jg 0x409b57
je 0x409b6c
cmp eax, 0x45
je 0x409aa5
cmp eax, 0x47
je 0x409aa5
cmp eax, 0x58
je 0x409b6c
cmp eax, 0x64
je 0x409b6c
add eax, 0xffffff9b
cmp eax, 2
ja 0x409b94
push 0x46ce50
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x409b94
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
jne 0x409ace
push 6
pop esi
jmp 0x409b3f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x409b2d
add dword [ebp + 0x10], 4
push 2
pop esi
jmp 0x409b3f
sub eax, 0x10073
je 0x409b18
sub eax, 0xffd0
je 0x409ad7
sub eax, 0x10
je 0x409b01
sub eax, 0x10
je 0x409ad7
sub eax, 0x10
jne 0x409a6b
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
je 0x409ac9
push eax
call fcn.00411ccf
pop ecx
jmp 0x409b2d
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
je 0x409ac9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 1
jge 0x409b37
xor esi, esi
inc esi
test esi, esi
je 0x409a6b
cmp esi, dword [ebp - 0xc]
jg 0x409b47
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 8], 0
je 0x409b94
cmp esi, dword [ebp - 8]
jl 0x409b94
mov esi, dword [ebp - 8]
jmp 0x409b94
sub eax, 0x6e
je 0x409b90
dec eax
je 0x409b6c
dec eax
je 0x409b7b
sub eax, 5
je 0x409b6c
sub eax, 3
jne 0x409b94
test dword [ebp - 0x10], 0x40000
je 0x409b7b
add dword [ebp + 0x10], 8
jmp 0x409b7f
add dword [ebp + 0x10], 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
push 0x20
pop esi
cmp eax, esi
jl 0x409b94
mov esi, eax
jmp 0x409b94
add dword [ebp + 0x10], 4
add dword [ebp - 4], esi
jmp 0x409ba3
push edi
call ebx
sub eax, edi
sar eax, 1
add dword [ebp - 4], eax
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x4098f0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ebp - 4]
lea edi, [eax - 0xc]
cmp dword [edi], 1
jg 0x409bc7
cmp ebx, dword [eax - 4]
jle 0x409c22
mov esi, dword [eax - 8]
cmp dword [ebp - 4], esi
jge 0x409bd1
mov ebx, esi
push ebx
push dword [ebp + 8]
call fcn.00409865
test eax, eax
je 0x409c2b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [esi + esi + 2]
push ecx
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebx + ebx + 2]
push ecx
push eax
call fcn.00412aff
push eax
call fcn.00403cda
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0x14
mov dword [eax - 8], esi
cmp edi, 0x474a44
je 0x409c22
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409c22
push edi
call fcn.00411acd
pop ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
jne 0x409c2f
xor eax, eax
jmp 0x409c97
push dword [ebp - 0x14]
mov ecx, dword [eax - 4]
push dword [ebp + 0xc]
inc ecx
push ecx
push eax
call fcn.00413174
mov edi, dword [esi]
add esp, 0x10
cmp dword [edi - 0xc], 1
jle 0x409c7f
call fcn.00409836
push dword [edi - 8]
push esi
call fcn.00409865
test eax, eax
je 0x409c7f
mov ecx, dword [edi - 8]
mov eax, dword [esi]
mov edx, dword [eax - 4]
lea ecx, [ecx + ecx + 2]
push ecx
lea edx, [edx + edx + 2]
push edi
push edx
push eax
call fcn.00412aff
push eax
call fcn.00403cda
add esp, 0x14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov dword [ecx - 8], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc