Function at 0x40c3f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
cmp word [esi], di
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], edi
je 0x40c726
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [esi], 0x25
jne 0x40c705
push esi
call ebx
mov esi, eax
mov ax, word [esi]
cmp ax, 0x25
je 0x40c705
cmp ax, di
mov dword [esp + 0x14], edi
je 0x40c48b
cmp ax, 0x23
jne 0x40c44e
add dword [esp + 0x28], 2
jmp 0x40c478
cmp ax, 0x2a
jne 0x40c460
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x14], eax
jmp 0x40c478
cmp ax, 0x2d
je 0x40c478
cmp ax, 0x2b
je 0x40c478
cmp ax, 0x30
je 0x40c478
cmp ax, 0x20
jne 0x40c485
push esi
call ebx
mov esi, eax
mov ax, word [esi]
cmp ax, di
jne 0x40c441
cmp dword [esp + 0x14], edi
jne 0x40c4ba
push esi
call fcn.0040f4dc
mov dword [esp + 0x18], eax
mov ax, word [esi]
add esp, 4
test ax, ax
je 0x40c4ba
push eax
call fcn.0040f522
add esp, 4
test eax, eax
je 0x40c4ba
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x40c4a0
cmp word [esi], 0x2e
mov dword [esp + 0x18], 0
jne 0x40c513
push esi
call ebx
mov esi, eax
cmp word [esi], 0x2a
jne 0x40c4e4
mov ecx, dword [ebp]
add ebp, 4
push esi
mov dword [esp + 0x1c], ecx
call ebx
mov esi, eax
jmp 0x40c513
push esi
call fcn.0040f4dc
mov dword [esp + 0x1c], eax
mov ax, word [esi]
add esp, 4
test ax, ax
je 0x40c513
push eax
call fcn.0040f522
add esp, 4
test eax, eax
je 0x40c513
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x40c4f9
mov ax, word [esi]
xor ebx, ebx
cmp ax, 0x49
jne 0x40c536
cmp word [esi + 2], 0x36
jne 0x40c536
cmp word [esi + 4], 0x34
jne 0x40c536
add esi, 6
mov ebx, 0x40000
jmp case.0x40c54b.73
and eax, 0xffff
add eax, 0xffffffba
cmp eax, 0x26
ja case.0x40c54b.73
xor edx, edx
mov dl, byte [eax + 0x40c8dc]
jmp dword [edx*4 + 0x40c8cc]
mov ebx, 0x10000
jmp case.0x40c54b.70
mov ebx, 0x20000
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
xor eax, eax
mov ax, word [esi]
or eax, ebx
cmp eax, 0x10063
jg 0x40c610
je 0x40c67c
cmp eax, 0x73
jg 0x40c602
je 0x40c5e5
cmp eax, 0x43
je 0x40c67c
cmp eax, 0x53
je 0x40c5d1
cmp eax, 0x63
je 0x40c67c
xor eax, eax
mov ax, word [esi]
add eax, 0xffffffbb
cmp eax, 0x33
ja case.0x40c5b6.73
xor ecx, ecx
mov cl, byte [eax + 0x40c918]
jmp dword [ecx*4 + 0x40c904]
test ebx, 0x40000
je 0x40c6a8
add ebp, 8
jmp 0x40c6ab
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x40c63b
mov edi, 6
jmp 0x40c68e
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x40c5f9
mov edi, 6
jmp 0x40c68e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40c66e
sub eax, 0x10043
je 0x40c67c
sub eax, 0x10
je 0x40c62a
jmp 0x40c59d
cmp eax, 0x20053
jg 0x40c644
je 0x40c654
cmp eax, 0x10073
je 0x40c62a
cmp eax, 0x20043
jmp 0x40c597
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x40c63b
mov edi, 6
jmp 0x40c68e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x40c66e
sub eax, 0x20063
je 0x40c67c
sub eax, 0x10
jne 0x40c59d
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x40c665
mov edi, 6
jmp 0x40c68e
push eax
call fcn.0040f505
add esp, 4
mov edi, eax
cmp edi, 1
jge 0x40c686
mov edi, 1
jmp 0x40c68e
mov edi, 2
add ebp, 4
jmp 0x40c68e
test edi, edi
je 0x40c59d
mov eax, dword [esp + 0x14]
cmp edi, eax
jg 0x40c698
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je case.0x40c5b6.73
cmp edi, eax
jl case.0x40c5b6.73
mov edi, eax
jmp case.0x40c5b6.73
add ebp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, 0x20
add eax, edx
cmp eax, edi
jl case.0x40c5b6.73
mov edi, eax
jmp case.0x40c5b6.73
push str.Floating_point____e____f____g__and___G__is_not_supported_by_the_WTL::CString_class.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp case.0x40c5b6.73
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, 0x20
add ebp, 4
lea eax, [ecx + edx]
cmp eax, edi
jl case.0x40c5b6.73
mov edi, eax
jmp case.0x40c5b6.73
add ebp, 4
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
add eax, edi
mov dword [esp + 0x28], eax
jmp 0x40c716
push esi
call ebx
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
add ecx, eax
mov dword [esp + 0x28], ecx
push esi
call ebx
mov esi, eax
xor edi, edi
cmp word [esi], di
jne 0x40c41c
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp ecx, 1
jg 0x40c744
cmp esi, dword [eax - 4]
jle 0x40c7d9
mov ebp, dword [eax - 8]
mov eax, dword [esp + 0x28]
cmp eax, ebp
jge 0x40c751
mov esi, ebp
test esi, esi
jne 0x40c763
mov edi, dword [esp + 0x10]
mov ecx, dword [0x419040]
mov dword [edi], ecx
jmp 0x40c790
lea edx, [esi + esi + 0xe]
push edx
call fcn.0040ef80
add esp, 4
test eax, eax
je 0x40c7e3
mov edi, dword [esp + 0x10]
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [edi], eax
lea ecx, [ebp + ebp + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x40c7b5
mov edx, dword [esp + 0x10]
mov eax, ecx
lea esi, [ebx + 0xc]
mov edi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, dword [edi]
mov dword [ecx - 8], ebp
mov eax, dword [0x419044]
cmp ebx, eax
je 0x40c7dd
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c7dd
push ebx
call fcn.0040eac0
add esp, 4
jmp 0x40c7dd
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
test eax, eax
jne 0x40c7ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp ecx, 1
jle 0x40c8a1
mov ecx, dword [0x419044]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40c83e
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c837
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.0040eac0
add esp, 4
mov eax, dword [0x419040]
mov dword [edi], eax
mov esi, dword [ebx + 4]
test esi, esi
jne 0x40c84f
mov ecx, dword [0x419040]
mov dword [edi], ecx
jmp 0x40c878
lea edx, [esi + esi + 0xe]
push edx
call fcn.0040ef80
add esp, 4
test eax, eax
je 0x40c8a1
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [edi], eax
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [edx]
lea ecx, [eax + eax + 2]
mov eax, dword [edi - 4]
lea edx, [eax + eax + 2]
cmp edx, ecx
jb 0x40c8a1
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi]
pop edi
mov dword [edx - 8], eax
mov ecx, dword [esi]
pop esi
pop ebp
mov word [ecx + eax*2], 0
mov eax, 1
pop ebx
add esp, 0x10
ret 8