Function at 0x407520
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
cmp word [esi], 0
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], 0
je 0x40786d
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x407550
cmp word [esi], 0x25
jne 0x407853
push esi
call ebx
mov esi, eax
movzx eax, word [esi]
cmp ax, 0x25
je 0x407853
xor edi, edi
mov dword [esp + 0x10], edi
test ax, ax
je 0x4075c2
cmp ax, 0x23
jne 0x407584
add dword [esp + 0x28], 2
jmp 0x4075ae
cmp ax, 0x2a
jne 0x407596
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x10], eax
jmp 0x4075ae
cmp ax, 0x2d
je 0x4075ae
cmp ax, 0x2b
je 0x4075ae
cmp ax, 0x30
je 0x4075ae
cmp ax, 0x20
jne 0x4075bb
push esi
call ebx
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x407577
cmp dword [esp + 0x10], 0
jne 0x4075f4
push esi
call fcn.00498969
mov dword [esp + 0x14], eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x4075f4
movzx eax, ax
push eax
call fcn.004995cd
add esp, 4
test eax, eax
je 0x4075f4
push esi
call ebx
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x4075d7
cmp word [esi], 0x2e
mov dword [esp + 0x14], 0
jne 0x40764f
push esi
call ebx
mov esi, eax
cmp word [esi], 0x2a
push esi
jne 0x40761e
mov ecx, dword [ebp]
add ebp, 4
mov dword [esp + 0x18], ecx
call ebx
mov esi, eax
jmp 0x40764f
call fcn.00498969
mov dword [esp + 0x18], eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x40764f
movzx eax, ax
push eax
call fcn.004995cd
add esp, 4
test eax, eax
je 0x40764f
push esi
call ebx
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x407632
movzx eax, word [esi]
xor ebx, ebx
cmp ax, 0x49
jne 0x407672
cmp word [esi + 2], 0x36
jne 0x407672
cmp word [esi + 4], 0x34
jne 0x407672
add esi, 6
mov ebx, 0x40000
jmp case.0x407684.71
movzx eax, ax
add eax, 0xffffffba
cmp eax, 0x26
ja case.0x407684.71
movzx edx, byte [eax + 0x407988]
jmp dword [edx*4 + 0x407978]
mov ebx, 0x10000
jmp case.0x407684.70
mov ebx, 0x20000
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
movzx eax, word [esi]
or eax, ebx
cmp eax, 0x10063
jg 0x40774a
je 0x407717
cmp eax, 0x73
jg 0x40773c
je 0x407724
cmp eax, 0x43
je 0x407717
cmp eax, 0x53
je 0x4076e9
cmp eax, 0x63
je 0x407717
movzx eax, word [esi]
add eax, 0xffffffbb
cmp eax, 0x33
ja case.0x4076e2.70
movzx eax, byte [eax + 0x4079c4]
jmp dword [eax*4 + 0x4079b0]
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x4076fb
lea edi, [eax + 6]
jmp 0x4077a2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 1
jge 0x40779a
mov edi, 1
jmp 0x4077a2
mov edi, 2
add ebp, 4
jmp 0x4077a2
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x407733
lea edi, [eax + 6]
jmp 0x4077a2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x407702
sub eax, 0x10043
je 0x407717
sub eax, 0x10
je 0x4076e9
jmp 0x4076cc
cmp eax, 0x20053
jg 0x407764
je 0x407774
cmp eax, 0x10073
je 0x4076e9
cmp eax, 0x20043
jmp 0x4076ca
sub eax, 0x20063
je 0x407717
sub eax, 0x10
jne 0x4076cc
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x407783
lea edi, [eax + 6]
jmp 0x4077a2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407786
sub eax, edx
sar eax, 1
jmp 0x407702
test edi, edi
je 0x4076cc
mov eax, dword [esp + 0x10]
cmp edi, eax
jg 0x4077ac
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je case.0x4076e2.70
cmp edi, eax
jl case.0x4076e2.70
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
add dword [esp + 0x28], edi
jmp 0x40785e
test ebx, 0x40000
je 0x4077de
add ebp, 8
jmp 0x4077e1
add ebp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, 0x20
lea eax, [ecx + edx]
cmp eax, edi
jl case.0x4076e2.70
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
add dword [esp + 0x28], edi
jmp 0x40785e
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]
add dword [esp + 0x28], edi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x40785e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, 0x20
add eax, ecx
add ebp, 4
cmp eax, edi
jl case.0x4076e2.70
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
add dword [esp + 0x28], edi
jmp 0x40785e
add ebp, 4
add dword [esp + 0x28], edi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x40785e
push esi
call ebx
sub eax, esi
sar eax, 1
add dword [esp + 0x28], eax
push esi
call ebx
mov esi, eax
cmp word [esi], 0
jne 0x407550
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea esi, [eax - 0xc]
jg 0x40788c
cmp ecx, dword [eax - 4]
jle 0x4078d3
mov edi, dword [eax - 8]
cmp ecx, edi
jge 0x407895
mov ecx, edi
mov edx, ebp
call fcn.004034c0
test eax, eax
je 0x4078da
mov ecx, dword [ebp]
lea edx, [edi + edi + 2]
push edx
lea eax, [esi + 0xc]
push eax
push ecx
call fcn.0049c670
mov edx, dword [ebp]
add esp, 0xc
mov dword [edx - 8], edi
cmp esi, 0x4f9f74
je 0x4078d3
push esi
call ebx
test eax, eax
jg 0x4078d3
push esi
call fcn.00498b08
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x4078e6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
lea esi, [eax - 0xc]
jle 0x407952
add eax, 0xfffffff4
cmp eax, 0x4f9f74
je 0x40792c
push esi
call ebx
test eax, eax
jg 0x407923
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.00498b08
add esp, 4
mov ecx, dword [0x4f9f84]
mov dword [ebp], ecx
mov ecx, dword [esi + 4]
mov edx, ebp
call fcn.004034c0
test eax, eax
je 0x407952
mov edx, dword [esi + 4]
mov ecx, dword [ebp]
lea eax, [edx + edx + 2]
push eax
add esi, 0xc
push esi
push ecx
call fcn.0049c670
add esp, 0xc
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
pop edi
mov dword [ecx - 8], eax
mov edx, dword [ebp]
pop esi
xor ecx, ecx
pop ebp
mov word [edx + eax*2], cx
lea eax, [ecx + 1]
pop ebx
add esp, 0xc
ret 0xc