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

Disassembly:
push 0xffffffffffffffff
push 0x457a41
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [edi + 0x18]
mov esi, ecx
push eax
mov dword [esp + 0x48], esi
call sub.MFC80U.DLL_Ordinal_2361
mov ebx, dword [edi + 8]
test ebx, ebx
mov ebp, eax
mov dword [esp + 0x48], ebx
jl 0x40e3e0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edi, [esp + 0x1c]
mov dword [esp + 0x108], 0
call fcn.004087c0
push 0x45d050
push 0x45d058
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
lea ecx, [esp + 0x64]
call sub.MFC80U.DLL_Ordinal_557
xor esi, esi
push esi
push 0x45d05c
mov ecx, edi
mov byte [esp + 0x110], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov edi, eax
test edi, edi
jl 0x40de47
mov bl, 3
lea ebx, [ebx]
push edi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push 0
push 0x45d060
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
test eax, eax
jl 0x40ddc0
add esi, 1
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x6c]
call sub.MFC80U.DLL_Ordinal_5711
push 0x45d05c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
sub eax, edi
sub eax, 1
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x10c], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
mov byte [esp + 0x108], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0
push 0x45d05c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov edi, eax
test edi, edi
jge 0x40dd90
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40de64
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x6c]
call sub.MFC80U.DLL_Ordinal_5711
push 0
push 0x45d060
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
test eax, eax
jl 0x40de7c
add esi, 1
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
sub eax, esi
mov esi, dword [esp + 0x44]
mov edx, dword [esi + 0x40]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
movzx ecx, ax
push ecx
push ebx
push 0x1a0
push edx
call edi
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x54]
push eax
push ebx
push 0x198
push ecx
call edi
mov edx, dword [esi + 0x40]
push 0
push 0
push 0x188
push edx
call edi
cmp ebx, eax
lea ecx, [esp + 0x24]
jne 0x40def8
push 0xffe9d7
call sub.MFC80U.DLL_Ordinal_326
test eax, eax
jne 0x40dee9
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x58]
push eax
push ecx
jmp 0x40df13
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x58]
push eax
push ecx
jmp 0x40df13
push 0xffffff
call sub.MFC80U.DLL_Ordinal_326
test eax, eax
je 0x40df09
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.00407b40
push 1
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5727
mov ecx, dword [esi + 0x40]
push 0
push 0
mov eax, 0xa
add dword [esp + 0x5c], eax
sub dword [esp + 0x64], eax
push 0x31
push ecx
call edi
push eax
call sub.MFC80U.DLL_Ordinal_2362
xor edi, edi
cmp dword [esp + 0x6c], edi
mov ebx, eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x30], edi
jle 0x40e3c5
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, edi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x108], 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
add eax, 0x14
test edi, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x40], eax
jl 0x40e408
cmp edi, dword [esp + 0x6c]
jge 0x40e408
mov edx, dword [esp + 0x68]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
push 0x45cc40
push 0x45d068
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x45cc40
push 0x45d06c
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0
push 0x45d060
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
test eax, eax
jl 0x40e023
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x40e3b4
test edi, edi
jne 0x40e36f
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], vtable.CFont.0
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x10c], 6
mov ecx, dword [ebx + 4]
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0xb0], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40e093
push eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
add ecx, 1
push ecx
lea edx, [esp + 0x30]
push 0x45d070
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
add esp, 0xc
lea edx, [esp + 0x84]
push edx
push ecx
push eax
mov eax, ebp
call fcn.00407990
push eax
call esi
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push 0x999999
mov ecx, ebp
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push 0x24
lea edi, [esp + 0x38]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, ebp
call eax
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x84]
mov edx, dword [edi + 0x50]
add dword [esp + 0x34], ecx
add edi, 0x50
cmp dword [edx - 0xc], 0
je 0x40e1fe
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push 0
mov ecx, ebp
call edx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40e17d
push 0
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
test eax, eax
jge 0x40e17d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push eax
mov ecx, edi
mov byte [esp + 0x10c], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x80]
mov byte [esp + 0x108], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40e125
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x94]
push edx
push ecx
push eax
mov eax, ebp
call fcn.00407990
push eax
call esi
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push 0x24
lea ebx, [esp + 0x38]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x94]
add dword [esp + 0x34], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
mov ecx, dword [edi]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x7c]
push eax
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10c], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x108], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ebx, dword [esp + 0x78]
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push ebx
mov ecx, ebp
call edx
mov byte [esp + 0x108], 5
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.CFont.0
call fcn.00407b40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x108], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x40e37a
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CFont.0
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x10c], 9
mov eax, dword [ebx + 4]
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xb0], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e2a2
mov edx, dword [ebp + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0x45d050
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [esp + 0x108], 0xa
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jne 0x40e2e4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
push 0x45cc40
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push 0
mov ecx, ebp
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x8c]
push edx
push ecx
push eax
mov eax, ebp
call fcn.00407990
push eax
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push 0x24
lea edi, [esp + 0x38]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebp]
add dword [esp + 0x34], ecx
mov eax, dword [edx + 0x30]
push ebx
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x108], 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CFont.0
call fcn.00407b40
jmp 0x40e389
mov eax, dword [esp + 0x84]
add dword [esp + 0x34], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
push 0x999999
mov ecx, ebp
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push 0x40034
lea edi, [esp + 0x38]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, ebp
call eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [esp + 0x30]
add edi, 1
cmp edi, dword [esp + 0x6c]
mov dword [esp + 0x30], edi
jl 0x40df70
lea ecx, [esp + 0x64]
mov byte [esp + 0x108], 0
call sub.MFC80U.DLL_Ordinal_745
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00452313
add esp, 0xf8
ret
jmp sub.MFC80U.DLL_Ordinal_1176