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

Disassembly:
push 0xffffffffffffffff
push 0x43643c
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449030]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0xf8]
push 0x44a4d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x58]
xor esi, esi
cmp eax, esi
ja 0x40feff
push 0x44a4d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov ecx, 0x44a378
mov dword [esp + 0xf0], esi
call sub.MFC80U.DLL_Ordinal_2925
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x44a4d0]
mov eax, dword [eax + 0x1c]
sub eax, esi
je 0x40fe4b
sub eax, 1
jne 0x40fee5
fild dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
fstp dword [esp + 0x50]
mov eax, esp
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, 0x44a378
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
mov eax, ebp
mov edi, 0x44a424
call fcn.00418f80
jmp 0x40fee5
lea ecx, [esp + 0x1c]
push ecx
push 0x44a41c
call fcn.00416900
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], esi
jne 0x40fe72
push 0x43ab38
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x3c]
fstp dword [esp + 0x3c]
push edx
fld dword [esp + 0x24]
mov ecx, 0x44a378
fstp dword [esp + 0x44]
fild dword [esp + 0x3c]
fstp dword [esp + 0x48]
fild dword [esp + 0x50]
fstp dword [esp + 0x4c]
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, ebp
call fcn.00410d30
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x410aa0
push edi
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
lea edx, [esp + 0x4c]
push edx
push esi
push 0x26200a
push esi
push eax
push ecx
mov dword [esp + 0xe4], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x64], esi
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
push 8
mov dword [esp + 0xf4], 1
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, esi
je 0x40ff7c
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ecx, dword [esp + 0x20]
mov dword [edi + 4], eax
mov dword [edi], ecx
jmp 0x40ff7e
xor edi, edi
mov edx, dword [edi]
fldz
push 4
fstp dword [esp + 0x20]
push edx
mov dword [esp + 0x78], edi
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, esi
je 0x40ff99
mov dword [edi + 4], eax
mov eax, dword [edi]
push 3
push eax
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, esi
je 0x40ffaa
mov dword [edi + 4], eax
cmp dword [ebp + 0x3c], esi
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x20], esi
jle 0x4103fa
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
fldz
test esi, esi
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fst dword [esp + 0x28]
fst dword [esp + 0x24]
jl 0x410613
cmp esi, dword [ebp + 0x3c]
jge 0x410613
mov eax, dword [ebp + 0x38]
lea ebx, [esi*4]
mov ecx, dword [eax + ebx]
add eax, ebx
cmp dword [ecx - 0xc], 0
je 0x4103e6
fstp st(0)
mov ecx, dword [esp + 0x68]
fild dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x64]
mov dword [esp + 0x34], ecx
fadd st(1)
mov dword [esp + 0x18], edx
lea eax, [esp + 0x24]
push eax
fisub dword [ebp + 0x2c]
mov eax, dword [ebp + 0x10]
test eax, eax
lea edi, [esp + 0xc0]
fstp dword [esp + 0x3c]
fild dword [esp + 0x64]
fstp dword [esp + 0xc0]
fld dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0xc4]
fild dword [esp + 0x38]
fstp dword [esp + 0xc8]
fiadd dword [esp + 0x1c]
fstp dword [esp + 0xcc]
fild dword [ebp + 0x14]
fstp dword [esp + 0x1c]
je 0x410078
mov eax, dword [eax]
jmp 0x41007a
xor eax, eax
fld dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push 2
push 1
push ecx
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov byte [esp + 0xf4], 2
cmp esi, dword [ebp + 0x3c]
lea ecx, [esp + 0x8c]
push ecx
jge 0x410617
mov eax, dword [ebp + 0x38]
push ecx
add eax, ebx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov eax, dword [esp + 0x108]
call fcn.0040fc80
mov byte [esp + 0xf0], 1
mov edx, dword [esp + 0x38]
push edx
call sub.gdiplus.dll_GdipDeleteFont
fld dword [esp + 0x30]
mov ecx, dword [ebp + 0x2c]
fld st(0)
fadd dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fild dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x41060a
mov eax, edx
sub eax, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
faddp st(2)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4103f8
cmp dword [esp + 0x74], 0xffffffff
jne 0x410147
mov dword [esp + 0x74], esi
cmp esi, dword [ebp + 0x3c]
jge 0x410615
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + ebx]
add eax, ebx
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x41060c
lea edx, [esp + 0x80]
fstp st(0)
push edx
push edi
mov dword [esp + 0x88], edi
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0x84], eax
lea eax, [esp + 0x9c]
push eax
push edi
push edi
mov dword [esp + 0xa8], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0xa0], eax
mov byte [esp + 0xf0], 4
fld dword [esp + 0x24]
cmp esi, dword [ebp + 0x3c]
fstp dword [esp + 0xac]
fld dword [esp + 0x28]
fstp dword [esp + 0xb0]
fld dword [esp + 0x2c]
fstp dword [esp + 0xb4]
fld dword [esp + 0x30]
fstp dword [esp + 0xb8]
jge 0x410617
mov eax, dword [ebp + 0x38]
fild dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0xac]
push ecx
add eax, ebx
mov eax, dword [eax]
push ecx
fstp dword [esp]
push eax
lea eax, [esp + 0xa8]
lea esi, [esp + 0x8c]
call fcn.00412ed0
mov edx, dword [esp + 0x9c]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
lea eax, [esp + 0x94]
push eax
push edi
mov dword [esp + 0x9c], edi
call sub.gdiplus.dll_GdipCreatePath
mov dword [esp + 0x98], eax
lea ecx, [esp + 0xa4]
push ecx
push edi
push edi
mov dword [esp + 0xb0], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0xa8], eax
mov byte [esp + 0xf0], 6
fld dword [esp + 0x28]
fsub qword [0x43e950]
mov edx, dword [esp + 0x20]
cmp edx, dword [ebp + 0x3c]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd qword [0x43e948]
fstp dword [esp + 0x50]
fld dword [esp + 0x18]
fstp dword [esp + 0x54]
fld dword [esp + 0x2c]
fstp dword [esp + 0x58]
fld dword [esp + 0x30]
fstp dword [esp + 0x5c]
jge 0x410617
mov eax, dword [ebp + 0x38]
fild dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x50]
push ecx
add eax, ebx
mov eax, dword [eax]
push ecx
fstp dword [esp]
push eax
lea eax, [esp + 0xb0]
lea esi, [esp + 0xa0]
call fcn.00412ed0
mov byte [esp + 0xf0], 5
mov edx, dword [esp + 0xa4]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov eax, dword [0x44a4d0]
cmp dword [eax + 4], edi
je 0x410323
lea eax, [esp + 0x18]
lea esi, [esp + 0xdc]
mov dword [esp + 0x18], 0xffacacac
call fcn.00413040
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0xe0]
mov ebx, dword [esp + 0x70]
mov edx, dword [ebx]
push ecx
push esi
push edx
call sub.gdiplus.dll_GdipFillPath
cmp eax, edi
je 0x41031b
mov dword [ebx + 4], eax
push esi
call sub.gdiplus.dll_GdipDeleteBrush
jmp 0x410327
mov ebx, dword [esp + 0x70]
lea esi, [esp + 0x24]
mov eax, ebp
call fcn.00410cb0
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 4]
mov eax, dword [ebx]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipFillPath
cmp eax, edi
je 0x41034d
mov dword [ebx + 4], eax
mov ecx, dword [0x44a4d0]
cmp dword [ecx + 0x10], edi
je 0x4103b4
lea eax, [esp + 0x18]
lea esi, [esp + 0x3c]
mov dword [esp + 0x18], 0xff000000
call fcn.00413040
fld dword [0x43e944]
lea edx, [esp + 0x78]
push edx
push edi
push ecx
mov dword [esp + 0x84], edi
fstp dword [esp]
mov edi, dword [esp + 0x4c]
push edi
call sub.gdiplus.dll_GdipCreatePen2
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x80]
lea edx, [esp + 0x78]
mov esi, ebx
call fcn.00412e30
mov eax, dword [esp + 0x78]
push eax
call sub.gdiplus.dll_GdipDeletePen
push edi
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x94]
push ecx
call sub.gdiplus.dll_GdipDeletePath
mov byte [esp + 0xf0], 1
mov edx, dword [esp + 0x80]
push edx
call sub.gdiplus.dll_GdipDeletePath
fldz
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x20]
fxch st(1)
add esi, 1
cmp esi, dword [ebp + 0x3c]
mov dword [esp + 0x20], esi
jl 0x40ffc9
fstp st(1)
fstp st(0)
cmp byte [ebp + 0x28], 0
je 0x410514
lea eax, [esp + 0x20]
push eax
xor ebx, ebx
push 0x96ffffff
mov dword [esp + 0x90], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
fild dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
fstp dword [esp + 0x18]
fild dword [esp + 0x60]
sub ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x70]
fstp dword [esp + 0x50]
mov dword [esp + 0x34], edx
fld dword [esp + 0x18]
mov dword [esp + 0x90], eax
fstp dword [esp + 0x54]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x34]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x54]
fstp dword [esp + 0x5c]
mov dword [esp + 0x90], edi
fild dword [esp + 0x24]
fstp dword [esp + 0x60]
call fcn.00412dc0
push edi
call sub.gdiplus.dll_GdipDeleteBrush
fld dword [0x43e940]
lea ecx, [esp + 0x78]
push ecx
push ebx
push ecx
fstp dword [esp]
push 0x90acacac
mov dword [esp + 0x88], ebx
call sub.gdiplus.dll_GdipCreatePen1
fild dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
fstp dword [esp + 0x18]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
add ecx, 0xffffffff
fstp dword [esp + 0x50]
add eax, 0xffffffff
fld dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x54]
lea edx, [esp + 0x78]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x54]
fstp dword [esp + 0x5c]
fild dword [esp + 0x1c]
fstp dword [esp + 0x60]
call fcn.00412d50
mov eax, dword [esp + 0x78]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0xfc]
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x40], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov byte [esp + 0xf0], 7
fldz
mov ecx, dword [esp + 0x4c]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImage
test eax, eax
je 0x41056a
mov dword [esp + 0x8c], eax
mov edi, dword [ebp + 0x54]
mov edx, dword [ebp + 0x58]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esi, [ebp + 0x48]
add edx, edi
cmp edi, edx
jbe 0x410581
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add ecx, eax
cmp edi, ecx
ja 0x410591
cmp edi, eax
jae 0x410593
call ebx
mov edx, dword [esi + 0x10]
add edx, dword [esi + 0xc]
cmp edi, edx
jb 0x41059f
call ebx
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x4105a8
sub edi, eax
mov eax, dword [esp + 0x6c]
fild dword [ebp + 0x2c]
sub eax, dword [esp + 0x64]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi*4]
fstp dword [esp + 0x34]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fld st(0)
fld dword [edx + 8]
fld dword [esp + 0x18]
fld st(0)
fsubp st(2)
fxch st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41061c
fld dword [esp + 0x1c]
fsubrp st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x410795
cmp byte [ebp + 0x5c], 0
je 0x410795
jmp 0x410620
fstp st(1)
fldz
jmp 0x4103e6
fstp st(1)
fstp st(0)
call fcn.00431d0e
fstp st(1)
fstp st(0)
lea ecx, [esp + 0x1c]
mov byte [ebp + 0x5c], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov ecx, 0x44a378
mov byte [esp + 0xf0], 8
call sub.MFC80U.DLL_Ordinal_2925
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x44a4d0]
mov eax, dword [eax + 0x1c]
sub eax, 0
je 0x4106ec
sub eax, 1
jne 0x410783
fild dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
fstp dword [esp + 0x18]
fild dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ecx
sub esp, 0x10
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0x28]
mov eax, esp
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
fild dword [esp + 0x44]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, 0x44a378
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call edi
mov ecx, eax
mov eax, ebp
mov edi, 0x44a424
call fcn.00418f80
jmp 0x410783
lea ecx, [esp + 0x1c]
push ecx
push 0x44a41c
call fcn.00416900
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
jne 0x410714
push 0x43ab38
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
fstp dword [esp + 0x18]
fild dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
lea edx, [esp + 0x50]
fstp dword [esp + 0x50]
push edx
fld dword [esp + 0x1c]
mov ecx, 0x44a378
fstp dword [esp + 0x58]
fild dword [esp + 0x38]
fstp dword [esp + 0x5c]
fild dword [esp + 0x24]
fstp dword [esp + 0x60]
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call edi
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, ebp
call fcn.00410d30
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf0], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor ebx, ebx
cmp dword [ebp + 0x58], ebx
mov dword [esp + 0x20], ebx
jbe 0x4108f1
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
cmp edi, eax
jbe 0x4107b6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add edi, ebx
add ecx, eax
cmp edi, ecx
ja 0x4107c8
cmp edi, eax
jae 0x4107ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0xc]
add edx, dword [esi + 0x10]
cmp edi, edx
jb 0x4107de
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
cmp edi, eax
jbe 0x4107f0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add edi, ebx
add ecx, eax
cmp edi, ecx
ja 0x410802
cmp edi, eax
jae 0x410808
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x10]
add edx, dword [esi + 0xc]
cmp edi, edx
jb 0x410818
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x410821
sub edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x20]
add eax, dword [ecx + 4]
mov ecx, dword [esp + 0x74]
cmp ecx, eax
mov dword [esp + 0x20], eax
je 0x410850
cmp ecx, 0xffffffff
je 0x410850
add ebx, 1
cmp ebx, dword [ebp + 0x58]
jb 0x4107a4
jmp 0x4108f1
test eax, eax
mov dword [esp + 0x1c], ebx
jle 0x410870
mov edi, dword [esp + 0x20]
lea ebx, [ebp + 0x34]
nop
push 1
push 0
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5442
sub edi, 1
jne 0x410860
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x4108ea
add eax, 1
mov dword [esp + 0x1c], eax
nop
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add edx, eax
cmp eax, edx
mov dword [esp + 0x20], eax
jbe 0x410896
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 0x10]
sub esp, 0xc
add ebx, 1
add ecx, eax
cmp ebx, ecx
mov edi, esp
ja 0x4108b2
cmp ebx, eax
jae 0x4108b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov eax, esp
mov dword [edi], 0
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [eax], 0
mov dword [eax + 4], esi
mov dword [eax + 8], edx
lea eax, [esp + 0x54]
push eax
call fcn.00412540
sub dword [esp + 0x1c], 1
jne 0x410880
mov dword [ebp + 0x2c], 0
cmp dword [ebp + 0x58], 0
je 0x410902
cmp dword [esp + 0x74], 0xffffffff
jne 0x410a6b
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov ecx, 0x44a378
mov byte [esp + 0xf0], 9
call sub.MFC80U.DLL_Ordinal_2925
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x44a4d0]
mov eax, dword [eax + 0x1c]
sub eax, 0
je 0x4109c6
sub eax, 1
jne 0x410a61
fild dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
fstp dword [esp + 0x50]
mov eax, esp
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fild dword [esp + 0x28]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, 0x44a378
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
mov eax, ebp
mov edi, 0x44a424
call fcn.00418f80
jmp 0x410a61
lea ecx, [esp + 0x1c]
push ecx
push 0x44a41c
call fcn.00416900
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
jne 0x4109ee
push 0x43ab38
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
fild dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
fstp dword [esp + 0x18]
fild dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
lea edx, [esp + 0x50]
fstp dword [esp + 0x50]
push edx
fld dword [esp + 0x1c]
mov ecx, 0x44a378
fstp dword [esp + 0x58]
fild dword [esp + 0x38]
fstp dword [esp + 0x5c]
fild dword [esp + 0x24]
fstp dword [esp + 0x60]
call sub.MFC80U.DLL_Ordinal_2925
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, ebp
call fcn.00410d30
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add dword [ebp + 0x2c], 1
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
push 0x44a4d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x4c]
push edx
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 8