Function at 0x40b3c0
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 0x40b6a8
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [edi], 0x25
jne 0x40b68f
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
cmp eax, 0x25
je 0x40b68f
xor esi, esi
mov dword [ebp - 0xc], esi
cmp ax, si
je 0x40b456
cmp ax, 0x23
jne 0x40b417
add dword [ebp - 4], 2
jmp 0x40b444
cmp ax, 0x2a
jne 0x40b42c
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
jmp 0x40b444
cmp ax, 0x2d
je 0x40b444
cmp ax, 0x2b
je 0x40b444
cmp ax, 0x30
je 0x40b444
cmp ax, 0x20
jne 0x40b451
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x40b40b
cmp dword [ebp - 0xc], esi
jne 0x40b47d
push edi
call fcn.00414fa5
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x40b475
movzx eax, ax
push eax
call fcn.00414f7c
pop ecx
test eax, eax
je 0x40b47d
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x40b462
and dword [ebp - 8], esi
cmp word [edi], 0x2e
jne 0x40b4cb
push edi
call ebx
mov edi, eax
cmp word [edi], 0x2a
push edi
jne 0x40b4a5
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 0x40b4cb
call fcn.00414fa5
pop ecx
mov dword [ebp - 8], eax
jmp 0x40b4c3
movzx eax, ax
push eax
call fcn.00414f7c
pop ecx
test eax, eax
je 0x40b4cb
push edi
call ebx
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x40b4b0
movzx eax, word [edi]
and dword [ebp - 0x10], esi
cmp eax, 0x49
jne 0x40b4f0
cmp word [edi + 2], 0x36
jne 0x40b4f0
cmp word [edi + 4], 0x34
jne 0x40b4f0
add edi, 6
mov dword [ebp - 0x10], 0x40000
jmp 0x40b51d
sub eax, 0x46
je 0x40b518
sub eax, 6
je 0x40b518
dec eax
dec eax
je 0x40b518
sub eax, 0x1a
je 0x40b511
sub eax, 4
jne 0x40b51d
mov dword [ebp - 0x10], 0x20000
jmp 0x40b518
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 0x40b5d6
je 0x40b5cd
sub eax, 0x43
je 0x40b5cd
push 0x10
pop ecx
sub eax, ecx
je 0x40b60e
sub eax, ecx
je 0x40b5cd
sub eax, ecx
je 0x40b5b1
sub eax, 0xffd0
je 0x40b5cd
sub eax, ecx
je 0x40b60e
movzx eax, word [edi]
cmp eax, 0x69
jg 0x40b64d
je 0x40b662
cmp eax, 0x45
je 0x40b59b
cmp eax, 0x47
je 0x40b59b
cmp eax, 0x58
je 0x40b662
cmp eax, 0x64
je 0x40b662
add eax, 0xffffff9b
cmp eax, 2
ja 0x40b68a
push 0x477f80
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x40b68a
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
jne 0x40b5c4
push 6
pop esi
jmp 0x40b635
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40b623
add dword [ebp + 0x10], 4
push 2
pop esi
jmp 0x40b635
sub eax, 0x10073
je 0x40b60e
sub eax, 0xffd0
je 0x40b5cd
sub eax, 0x10
je 0x40b5f7
sub eax, 0x10
je 0x40b5cd
sub eax, 0x10
jne 0x40b561
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
je 0x40b5bf
push eax
call fcn.00413a6b
pop ecx
jmp 0x40b623
add dword [ebp + 0x10], 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
je 0x40b5bf
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 1
jge 0x40b62d
xor esi, esi
inc esi
test esi, esi
je 0x40b561
cmp esi, dword [ebp - 0xc]
jg 0x40b63d
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 8], 0
je 0x40b68a
cmp esi, dword [ebp - 8]
jl 0x40b68a
mov esi, dword [ebp - 8]
jmp 0x40b68a
sub eax, 0x6e
je 0x40b686
dec eax
je 0x40b662
dec eax
je 0x40b671
sub eax, 5
je 0x40b662
sub eax, 3
jne 0x40b68a
test dword [ebp - 0x10], 0x40000
je 0x40b671
add dword [ebp + 0x10], 8
jmp 0x40b675
add dword [ebp + 0x10], 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
push 0x20
pop esi
cmp eax, esi
jl 0x40b68a
mov esi, eax
jmp 0x40b68a
add dword [ebp + 0x10], 4
add dword [ebp - 4], esi
jmp 0x40b699
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 0x40b3e6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ebp - 4]
lea edi, [eax - 0xc]
cmp dword [edi], 1
jg 0x40b6bd
cmp ebx, dword [eax - 4]
jle 0x40b718
mov esi, dword [eax - 8]
cmp dword [ebp - 4], esi
jge 0x40b6c7
mov ebx, esi
push ebx
push dword [ebp + 8]
call fcn.0040b35b
test eax, eax
je 0x40b721
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.0041489f
push eax
call fcn.00404f76
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0x14
mov dword [eax - 8], esi
cmp edi, 0x47fa84
je 0x40b718
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b718
push edi
call fcn.00413869
pop ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
jne 0x40b725
xor eax, eax
jmp 0x40b78d
push dword [ebp - 0x14]
mov ecx, dword [eax - 4]
push dword [ebp + 0xc]
inc ecx
push ecx
push eax
call fcn.00414f14
mov edi, dword [esi]
add esp, 0x10
cmp dword [edi - 0xc], 1
jle 0x40b775
call fcn.0040b32c
push dword [edi - 8]
push esi
call fcn.0040b35b
test eax, eax
je 0x40b775
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.0041489f
push eax
call fcn.00404f76
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