Function at 0x40ceb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eef2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x551aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40d0b4
test eax, eax
je 0x40d0b4
mov edi, dword [esi + 8]
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40d0b4
test eax, eax
je 0x40d0b4
mov edi, dword [edi + 4]
call fcn.0040d7b0
push edi
lea ecx, [esi + 0x28]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [edi + 4]
push eax
lea ecx, [esi + 0x2c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 0x30]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea edx, [edi + 0xc]
push edx
lea ecx, [esi + 0x34]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x38]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov cx, word [edi + 0x1c]
lea edx, [edi + 0x20]
mov word [esi + 0x5c], cx
push edx
lea ecx, [esi + 0x74]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x78]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x7c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ebx, dword [edi + 0x2c]
cmp ebx, dword [edi + 0x30]
je 0x40d07e
mov edx, esi
add edx, 0x3c
lea eax, [ebx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.0040e2e0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
lea ecx, [ebp - 0x14]
push 0x543bd4
push ecx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov esi, dword [ebp - 0x18]
movzx edx, word [esi - 4]
push edx
lea eax, [ebp - 0x10]
push 0x53f27c
push eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x18
cmp esi, dword [edi + 0x30]
je 0x40d033
push 0x543d38
lea ecx, [ebp - 0x14]
call dword [0x511830]
push 0x543d38
lea ecx, [ebp - 0x10]
call dword [0x511830]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call dword [0x51182c]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
add ecx, 0x68
call dword [0x51182c]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
add ebx, 8
add esi, 8
mov dword [ebp - 0x18], esi
cmp ebx, dword [edi + 0x30]
jne 0x40cfb9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
sub ecx, dword [eax + 0x3c]
test ecx, 0xfffffff8
jne 0x40d0b4
push 0x543d3c
xor esi, esi
call fcn.00417260
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4