Function at 0x40ce50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov al, byte [esi]
mov dword [esp + 0x28], 0
test al, al
je 0x40d156
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x25
jne 0x40d139
push esi
call ebp
mov esi, eax
mov al, byte [esi]
cmp al, 0x25
je 0x40d139
xor edi, edi
test al, al
mov dword [esp + 0x10], edi
je 0x40cedc
cmp al, 0x23
jne 0x40ceac
add dword [esp + 0x28], 2
jmp 0x40cecb
cmp al, 0x2a
jne 0x40cebb
mov eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x10], eax
jmp 0x40cecb
cmp al, 0x2d
je 0x40cecb
cmp al, 0x2b
je 0x40cecb
cmp al, 0x30
je 0x40cecb
cmp al, 0x20
jne 0x40ced6
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40cea1
cmp dword [esp + 0x10], edi
jne 0x40cf0a
push esi
call fcn.00413799
mov dword [esp + 0x14], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x40cf0a
movsx ecx, al
push ecx
call fcn.0041367f
add esp, 4
test eax, eax
je 0x40cf0a
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40ceef
mov al, byte [esi]
mov dword [esp + 0x14], 0
cmp al, 0x2e
jne 0x40cf60
push esi
call ebp
mov esi, eax
cmp byte [esi], 0x2a
jne 0x40cf32
mov edx, dword [ebx]
add ebx, 4
push esi
mov dword [esp + 0x18], edx
call ebp
mov esi, eax
jmp 0x40cf60
push esi
call fcn.00413799
mov dword [esp + 0x18], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x40cf60
movsx eax, al
push eax
call fcn.0041367f
add esp, 4
test eax, eax
je 0x40cf60
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40cf45
mov al, byte [esi]
xor ebp, ebp
cmp al, 0x49
jne 0x40cf7e
cmp byte [esi + 1], 0x36
jne 0x40cf7e
cmp byte [esi + 2], 0x34
jne 0x40cf7e
add esi, 3
mov ebp, 0x40000
jmp case.0x40cf91.73
movsx eax, al
add eax, 0xffffffba
cmp eax, 0x26
ja case.0x40cf91.73
xor ecx, ecx
mov cl, byte [eax + 0x40d2dc]
jmp dword [ecx*4 + 0x40d2cc]
mov ebp, 0x10000
jmp case.0x40cf91.70
mov ebp, 0x20000
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
movsx eax, byte [esi]
or eax, ebp
cmp eax, 0x10063
jg 0x40d050
je 0x40d0b1
cmp eax, 0x73
jg 0x40d042
je 0x40d026
cmp eax, 0x43
je 0x40d0b1
cmp eax, 0x53
je 0x40d013
cmp eax, 0x63
je 0x40d0b1
movsx eax, byte [esi]
add eax, 0xffffffb9
cmp eax, 0x31
ja case.0x40cff8.75
xor edx, edx
mov dl, byte [eax + 0x40d318]
jmp dword [edx*4 + 0x40d304]
test ebp, 0x40000
je 0x40d0dd
add ebx, 8
jmp 0x40d0e0
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x40d09a
mov edi, 6
jmp 0x40d0c3
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x40d039
mov edi, 6
jmp 0x40d0c3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x40d0a3
sub eax, 0x10043
je 0x40d0b1
sub eax, 0x10
je 0x40d06a
jmp 0x40cfe1
cmp eax, 0x20053
jg 0x40d07a
je 0x40d08a
cmp eax, 0x10073
je 0x40d06a
cmp eax, 0x20043
jmp 0x40cfdb
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x40d039
mov edi, 6
jmp 0x40d0c3
sub eax, 0x20063
je 0x40d0b1
sub eax, 0x10
jne 0x40cfe1
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x40d09a
mov edi, 6
jmp 0x40d0c3
push eax
call fcn.00413662
add esp, 4
mov edi, eax
cmp edi, 1
jge 0x40d0bb
mov edi, 1
jmp 0x40d0c3
mov edi, 2
add ebx, 4
jmp 0x40d0c3
test edi, edi
je 0x40cfe1
mov eax, dword [esp + 0x10]
cmp edi, eax
jg 0x40d0cd
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je case.0x40cff8.75
cmp edi, eax
jl case.0x40cff8.75
mov edi, eax
jmp case.0x40cff8.75
add ebx, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, 0x20
add eax, ecx
cmp eax, edi
jl case.0x40cff8.75
mov edi, eax
jmp case.0x40cff8.75
push str.Floating_point____e____f____g__and___G__is_not_supported_by_the_WTL::CString_class.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp case.0x40cff8.75
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, 0x20
add eax, edx
add ebx, 4
cmp eax, edi
jl case.0x40cff8.75
mov edi, eax
jmp case.0x40cff8.75
add ebx, 4
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
add eax, edi
mov dword [esp + 0x28], eax
jmp 0x40d148
push esi
call ebp
mov ecx, dword [esp + 0x28]
sub eax, esi
add ecx, eax
mov dword [esp + 0x28], ecx
push esi
call ebp
mov esi, eax
cmp byte [esi], 0
jne 0x40ce7f
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
lea ebp, [eax - 0xc]
jg 0x40d174
cmp esi, dword [eax - 4]
jle 0x40d1f9
mov ebx, dword [eax - 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
jge 0x40d181
mov esi, ebx
test esi, esi
jne 0x40d193
mov eax, dword [esp + 0x18]
mov edx, dword [0x41f0c8]
mov dword [eax], edx
jmp 0x40d1bd
lea ecx, [esi + 0xd]
push ecx
call fcn.004131a8
add esp, 4
test eax, eax
je 0x40d203
mov edx, dword [esp + 0x18]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 1]
mov edx, ecx
lea esi, [ebp + 0xc]
mov edi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
mov dword [eax - 8], ebx
mov eax, dword [0x41f0cc]
cmp ebp, eax
je 0x40d1f9
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d1f9
push ebp
call fcn.00412b8c
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d20f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jle 0x40d2a9
mov ecx, dword [0x41f0cc]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40d25b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d253
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00412b8c
add esp, 4
mov ecx, dword [0x41f0c8]
mov dword [ebx], ecx
mov esi, dword [edi + 4]
test esi, esi
jne 0x40d26c
mov edx, dword [0x41f0c8]
mov dword [ebx], edx
jmp 0x40d292
lea eax, [esi + 0xd]
push eax
call fcn.004131a8
add esp, 4
test eax, eax
je 0x40d2a9
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov ecx, dword [edi + 4]
lea esi, [edi + 0xc]
mov edi, dword [ebx]
inc ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
pop edi
pop esi
pop ebp
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
mov eax, 1
add esp, 0x10
ret 8