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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56c144
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea esi, [esp + 0x9c]
call fcn.005568c0
lea esi, [ebp + 0x174]
push esi
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0xf4], 0
call fcn.0040fc50
lea edi, [ebp + 0x188]
push edi
lea ecx, [esp + 0x88]
push ecx
mov byte [esp + 0xf4], 1
call fcn.0040fda0
mov byte [esp + 0xec], 2
call fcn.0040fd40
mov esi, edi
call fcn.0040fed0
mov eax, dword [ebp + 0x54]
add eax, 0xa8
mov dword [esp + 0x20], eax
mov eax, dword [eax + 8]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x40e61f
mov dword [esp + 0x14], 0xc8
jmp 0x40e250
mov ecx, dword [esp + 0x10]
lea ecx, [ecx]
mov eax, dword [esp + 0x94]
mov esi, dword [eax]
cmp esi, eax
je 0x40e26e
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 8]
cmp dword [edx + 0x64], ecx
je 0x40e26e
mov esi, dword [esi]
cmp esi, eax
jne 0x40e260
mov ecx, dword [esp + 0x88]
mov ebx, dword [ecx]
cmp ebx, ecx
je 0x40e28e
mov eax, dword [esi + 8]
mov edi, edi
mov edx, dword [ebx + 8]
cmp dword [edx + 0x5c], eax
je 0x40e28e
mov ebx, dword [ebx]
cmp ebx, ecx
jne 0x40e280
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x14]
add esi, 8
add eax, 0x32
push eax
mov dword [ecx + 0x74], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push 0xfffffffffffffff4
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [ebp + 0x178]
mov edx, dword [edi + 4]
push esi
push edx
push edi
call fcn.00410250
mov ecx, 1
lea edx, [ebp + 0x174]
mov esi, eax
call fcn.00410280
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0xfc], 3
call fcn.00475f90
mov edi, dword [esp + 0x14]
mov dword [esi + 0x68], edi
mov eax, dword [esi + 0x54]
test eax, eax
je 0x40e31f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
call sub.MFC71.DLL_AfxGetModuleState
movzx eax, word [esp + 0x3c]
push eax
push 0xe
push eax
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [esp + 0x18]
lea ecx, [esi + 0x58]
push edx
mov dword [esi + 0x54], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov eax, dword [esi + 0x20]
push edi
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebx + 8]
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
push 0x11
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x40e395
mov ecx, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x58]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x64]
push edx
push ecx
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi + 0x20]
push eax
push ecx
mov dword [esp + 0x78], edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0xb0]
mov edi, dword [0x5c63e0]
mov edx, dword [ebp + 0x19c]
mov ebx, dword [esp + 0x6c]
mov ecx, eax
sub eax, edi
sub ecx, edi
sub eax, dword [ebp + 0x198]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18c]
lea ebx, [edx + ebx + 0x1a]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x24], 0
je 0x40e4ad
lea esp, [esp]
mov ebx, dword [edi + 8]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
push 0x11
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x40e452
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x44]
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
mov edi, dword [edi]
lea eax, [ecx + edx + 0x1a]
mov dword [esp + 0x24], eax
cmp edi, dword [ebp + 0x18c]
jne 0x40e420
mov ecx, dword [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 4
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
push 0
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowPos
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
push 0x11
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x40e519
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
push edx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x194]
add ebx, 8
cmp eax, ebx
jg 0x40e5b4
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC71.DLL_CDC::FromHandle
push 0x11
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x40e580
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
push edx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebx + 8]
mov dword [ebp + 0x194], eax
mov esi, dword [ebp + 0x18c]
mov edx, dword [esi + 4]
lea ebx, [ebp + 0x188]
lea ecx, [esp + 0x40]
push ecx
push edx
push esi
call fcn.00410350
mov ecx, 1
mov edx, ebx
mov edi, eax
call fcn.00410380
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x18]
mov dword [eax], edi
mov byte [esp + 0xec], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [ecx + 8]
inc esi
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jne 0x40e249
lea edx, [esp + 0xb4]
push edx
mov ecx, ebp
xor esi, esi
call sub.MFC71.DLL_CWnd::GetWindowPlacement
mov eax, dword [esp + 0xbc]
cmp eax, 3
jne 0x40e643
mov esi, 2
jmp 0x40e64d
cmp eax, 2
jne 0x40e64d
mov esi, 1
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
sub edx, ebx
push edx
sub eax, ecx
push eax
push esi
mov ecx, ebp
call fcn.0040e9a0
push ebp
call fcn.0042f070
mov esi, dword [esp + 0x88]
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x40e6a6
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x40e695
push esi
call sub.MFC71.DLL_operator_delete_1
mov esi, dword [esp + 0x98]
mov eax, dword [esi]
add esp, 4
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x40e6d2
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x40e6c1
push esi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esp + 0xec], 0xffffffff
call fcn.005568a0
mov ecx, dword [esp + 0xe4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret