Function at 0x412420
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ee474
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CClientDC::CClientDC
xor edi, edi
mov dword [esp + 0x98], edi
push 0x4d8
mov ecx, ebx
call sub.mfc90u.dll_CWnd::GetDlgItem
push edi
push edi
mov esi, eax
mov eax, dword [esi + 0x20]
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CDC::SelectObject_1
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
add eax, edx
push edi
add ebx, 0x78
push 0xa
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov esi, eax
cmp esi, 0xffffffff
je 0x41256d
mov ecx, esi
sub ecx, edi
push ecx
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push eax
lea edi, [esi + 1]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jle 0x41253b
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x14], ecx
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push edi
push 0xa
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4124f6
cmp dword [esp + 0x10], eax
jne 0x41258c
mov ebx, dword [ebx]
mov eax, dword [ebx - 0xc]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x14]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
push edx
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CDC::SelectObject_1
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.005df0c0
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8