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

Disassembly:
push 0xffffffffffffffff
push 0x429fee
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push edi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
xor ebp, ebp
cmp esi, ebp
mov ebx, ecx
je 0x403063
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x94]
push edx
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5609
push 0xfff8ee
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2255
lea ecx, [esp + 0x34]
push ecx
push esi
lea edi, [ebp + 4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 0x1c2
mov dword [esp + 0x48], 0x56
call fcn.00402060
mov eax, dword [ebx + 0x54]
cmp eax, 1
je 0x4025fb
cmp eax, ebp
je 0x4025fb
cmp eax, 2
jne 0x4029f3
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
lea ebp, [ebx + 0x84]
push ebp
mov ecx, esi
call eax
push 1
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x38]
push 0x666666
mov ecx, esi
call eax
mov edx, dword [ebx + 0x88]
mov ecx, 0x44
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xa4]
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x12c
push 0x5c
mov edi, 0x66
push edx
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x44], 0x12
mov dword [esp + 0x48], 0x52
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 0x16
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x2a
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0x30
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
add dword [esp + 0xa4], 2
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], vtable.CFont.0
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x174], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x80]
call sub.MFC80U.DLL_Ordinal_1271
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call edx
push 0x42d8c0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea edi, [esp + 0x60]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push ebp
mov ecx, esi
call eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40254b
mov ecx, dword [ebx + 0x60]
sub ecx, eax
sar ecx, 4
je 0x40254b
lea edx, [esp + 0x34]
push edx
push esi
mov edi, 2
call fcn.00402060
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ecx
add eax, 0x1c
mov dword [esp + 0x2c], edx
push 0x42d8d8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea edi, [esp + 0x28]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x88], eax
add eax, 0xfffffffc
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x90], ecx
add eax, 0x14
mov dword [esp + 0x8c], edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea eax, [ebx + 0x58]
mov byte [esp + 0x170], 4
call fcn.00403170
push eax
lea edx, [esp + 0x20]
push str.__u
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov ecx, dword [ebx + 0x88]
add esp, 0xc
lea eax, [esp + 0x104]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
add dword [esp + 0x104], 2
mov dword [esp + 0x114], 0x258
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], vtable.CFont.0
lea edx, [esp + 0x104]
push edx
mov byte [esp + 0x174], 5
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x48]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov edx, dword [eax + 0x30]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x1960f2
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea edi, [esp + 0x88]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
push 0x666666
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x30]
push ebp
mov ecx, esi
call eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
add eax, 4
mov dword [esp + 0x88], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
add eax, 5
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x4c], eax
add eax, 0x2d
push 0x42d8ec
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea ebp, [esp + 0x50]
push ebp
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x170], 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], vtable.CFont.0
call fcn.00403a30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x4025b2
lea ecx, [esp + 0x34]
push ecx
push esi
mov edi, 3
call fcn.00402060
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edx, [esp + 0x1c]
push 0x42d8f4
push edx
mov byte [esp + 0x178], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
add esp, 8
push 0x824
lea edi, [esp + 0x70]
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4025c4
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
push edi
mov ecx, esi
call eax
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CFont.0
call fcn.00403a30
jmp 0x4029f3
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [ebx + 0x84]
push eax
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x20], eax
call sub.MFC80U.DLL_Ordinal_5727
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x666666
mov ecx, esi
call edx
mov edi, 0x66
push str.ck_W
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], 0x18
mov dword [esp + 0x68], 0x12c
mov dword [esp + 0x6c], 0x2c
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x170], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea ebp, [esp + 0x60]
push ebp
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x170], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0x140
mov dword [esp + 0x3c], eax
mov ecx, 0x3d
mov dword [esp + 0x74], eax
sub eax, 2
mov edx, 0x68
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x210]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov ebp, 0x32
push ecx
mov dword [esp + 0x70], edi
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], 0x13e
mov dword [esp + 0x58], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x402718
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
push edx
push 2
push 0
push esi
push ebx
lea eax, [esp + 0x48]
mov ecx, 7
call fcn.00401fc0
mov eax, dword [ebx + 0x210]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40275c
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x210]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
push ecx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40278f
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push edx
add eax, 0xfffffffc
push eax
push 2
push esi
push ebx
lea eax, [esp + 0x60]
mov ecx, 7
call fcn.00401fc0
mov eax, dword [ebx + 0x210]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4027d9
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x210]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
push ecx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40280c
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push 2
add eax, 0xfffffffe
push eax
push esi
push ebx
lea eax, [esp + 0x80]
mov ecx, 7
call fcn.00401fc0
mov eax, 0x140
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x80]
cmp eax, 0xa
mov ecx, 0x3d
jb 0x4029c5
cmp eax, 0x64
ja 0x4029c5
imul eax, eax, 0xda
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0x66
lea edx, [edi + 5]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], edx
lea edx, [eax - 5]
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], edi
sub eax, 5
mov dword [esp + 0x6c], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edi
mov edi, dword [ebx + 0x218]
lea edx, [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x4028de
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
push ecx
push 5
push ebp
push esi
push ebx
lea eax, [esp + 0x48]
mov ecx, 8
call fcn.00401fc0
mov edi, dword [ebx + 0x218]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x402915
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x218]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x402940
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
push edi
add eax, 0xfffffff6
push eax
push 5
push esi
push ebx
lea eax, [esp + 0x60]
mov ecx, 8
call fcn.00401fc0
mov edi, dword [ebx + 0x218]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x40297a
mov dword [edi + 8], eax
mov edi, dword [ebx + 0x218]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x4029a1
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
push 5
add eax, 0xfffffffb
push eax
push esi
push ebx
lea eax, [esp + 0x80]
mov ecx, 8
call fcn.00401fc0
jmp 0x4029c7
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4029d9
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov edx, dword [esi]
mov eax, dword [esp + 0x44]
mov edx, dword [edx + 0x38]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 0x5c]
test eax, eax
mov ebp, 0x68
je 0x402c8a
mov ecx, dword [ebx + 0x60]
sub ecx, eax
sar ecx, 4
je 0x402c8a
lea edx, [esp + 0x5c]
push edx
push esi
xor edi, edi
mov dword [esp + 0x64], 0x22
mov dword [esp + 0x68], 0x6b
mov dword [esp + 0x6c], 0x34
mov dword [esp + 0x70], 0x7d
mov dword [esp + 0x3c], 0x3c
mov dword [esp + 0x40], 0x6a
mov dword [esp + 0x44], 0x96
mov dword [esp + 0x48], 0x7e
call fcn.00402060
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea edi, [ebx + 0x84]
push edi
mov ecx, esi
call edx
push 1
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x1960f2
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xa4]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0xb4], 0x258
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CFont.0
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0x174], 8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
push str.X__W
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x824
lea ebp, [esp + 0x38]
push ebp
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push edi
mov ecx, esi
call eax
xor ecx, ecx
mov dword [esp + 0x44], eax
mov ebp, 0x7e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x402c42
mov eax, dword [ebx + 0x60]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x402c42
test edx, edx
je 0x402b7d
mov eax, dword [ebx + 0x60]
sub eax, edx
sar eax, 4
cmp ecx, eax
jb 0x402b83
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x5c]
add edi, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, dword [edi + 4]
mov dword [esp + 0x50], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x54], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x58], eax
mov byte [esp + 0x170], 0xa
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
lea edi, [ebp + 0x1c]
push 0x444444
mov ecx, esi
mov dword [esp + 0x60], 0x3c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0xc8
mov dword [esp + 0x6c], edi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0x824
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x58]
lea eax, [ebp + 1]
add ebp, 0x19
test ecx, ecx
je 0x402c1b
push 1
sub ebp, eax
push ebp
push 0x4e
push eax
push 0x12a
call sub.MFC80U.DLL_Ordinal_4119
lea ecx, [esp + 0x4c]
mov ebp, edi
mov byte [esp + 0x170], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add dword [esp + 0x14], 1
add dword [esp + 0x1c], 0x10
mov ecx, dword [esp + 0x14]
jmp 0x402b52
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402c54
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x38]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CFont.0
call fcn.00403a30
mov eax, dword [ebx + 0x6c]
add ebp, 6
test eax, eax
je 0x402f8a
mov ecx, dword [ebx + 0x70]
sub ecx, eax
sar ecx, 4
je 0x402f8a
lea edx, [ebp + 3]
mov dword [esp + 0x60], edx
lea eax, [ebp + 0x15]
lea edx, [esp + 0x5c]
add ebp, 2
push edx
lea ecx, [ebp + 0x14]
push esi
mov edi, 1
mov dword [esp + 0x64], 0x22
mov dword [esp + 0x6c], 0x34
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], 0x3c
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x96
mov dword [esp + 0x60], ecx
call fcn.00402060
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea edi, [ebx + 0x84]
push edi
mov ecx, esi
add ebp, 0x16
call edx
push 1
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x24900d
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xa4]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0xb4], 0x258
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], vtable.CFont.0
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0x174], 0xb
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x88]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
push 0x42d910
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0x824
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 0xb
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
xor ecx, ecx
lea eax, [ebp + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x402e00
mov edx, dword [ebx + 0x6c]
test edx, edx
je 0x402f3c
mov eax, dword [ebx + 0x70]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x402f3c
test edx, edx
je 0x402e2b
mov eax, dword [ebx + 0x70]
sub eax, edx
sar eax, 4
cmp ecx, eax
jb 0x402e31
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x6c]
add edi, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, dword [edi + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x40], eax
mov byte [esp + 0x170], 0xd
mov edx, dword [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x444444
mov ecx, esi
mov dword [esp + 0x60], 0x3c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0xc8
mov dword [esp + 0x6c], edi
call eax
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0x824
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x999999
mov ecx, esi
mov dword [esp + 0x70], 0x138
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 0x195
mov dword [esp + 0x7c], edi
call edx
push 0x42d91c
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x170], 0xe
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
push 0x824
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add edi, 0x1c
lea ecx, [esp + 0x34]
add ebp, 0x1c
mov dword [esp + 0x18], edi
mov byte [esp + 0x170], 0xb
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add dword [esp + 0x1c], 1
add dword [esp + 0x14], 0x10
mov ecx, dword [esp + 0x1c]
jmp 0x402e00
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402f4e
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5727
mov edx, dword [esi]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x38]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], vtable.CFont.0
call fcn.00403a30
mov eax, dword [ebx + 0x54]
cmp eax, 1
je 0x402f9a
test eax, eax
jne 0x403063
mov ecx, dword [0x43cf04]
cmp ecx, 8
jl 0x402fad
xor ecx, ecx
mov dword [0x43cf04], ecx
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
add eax, eax
add eax, eax
cmp dword [ebx + 0x200], 0
mov dword [esp + 0x44], eax
je 0x40305a
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [ebx + 0x1c4]
mov ebp, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [ebx + 0x1d0]
mov ebx, dword [ebx + 0x200]
mov edi, dword [esp + 0x14]
sub eax, edx
sub ecx, ebp
test ebx, ebx
je 0x403016
mov ebx, dword [ebx + 4]
mov dword [esp + 0x24], ebx
jmp 0x40301e
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x44]
push 0
push 0
push 0
push 2
push 0x38
push 0x38
push 0
push ebx
push ecx
push eax
mov eax, dword [esp + 0x3c]
push ebp
push edx
mov edx, dword [esp + 0x54]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esi + 4]
push ecx
push edi
call sub.gdiplus.dll_GdipReleaseDC
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [0x43cf04]
add ecx, 1
mov dword [0x43cf04], ecx
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00426052
add esp, 0x164
ret