Function at 0x457350
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e9d68
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [esp + 0x50]
xor edi, edi
cmp eax, edi
jne 0x457381
xor eax, eax
jmp 0x457384
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
push ecx
push eax
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x380]
mov dword [esp + 0x48], edi
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4573cc
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4
mov eax, dword [esi + 0x38c]
mov edx, dword [esi + 0x374]
mov edi, dword [esi + 0x384]
push ebx
mov ebx, dword [esi + 0x39c]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x394]
sub eax, ebx
sub eax, edi
mov ebx, dword [esi + 0x384]
add eax, edx
mov ecx, dword [esi + 0x398]
cdq
sub eax, edx
mov edx, dword [esi + 0x394]
mov edi, eax
mov eax, dword [esi + 0x388]
sar edi, 1
add edi, ebx
mov ebx, dword [esi + 0x3a0]
push ebp
mov ebp, dword [esi + 0x39c]
sub ebx, ecx
mov ecx, esi
mov dword [esp + 0x10], eax
sub ebp, edx
call fcn.00457260
cmp dword [esi + 0x370], 1
jne 0x457456
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x5c]
push ebx
push ebp
push edx
push edi
call sub.MFC42.DLL_CDC::FillSolidRect
jmp 0x4574fd
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::CDC
mov eax, dword [esp + 0x58]
mov byte [esp + 0x50], 1
test eax, eax
je 0x45746f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x45749c
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
jmp 0x4574a4
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x10]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x60]
push 0
push eax
mov eax, dword [edx + 4]
push ebx
push ebp
push ecx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4574e6
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0
call fcn.0047d630
mov edx, dword [esi + 0xa0]
mov ecx, esi
push edx
call fcn.004571a0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
add edi, eax
add edx, eax
add eax, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], edx
sub ebp, eax
sub ebx, eax
call sub.MFC42.DLL_CDC::CDC
mov eax, dword [esp + 0x58]
mov byte [esp + 0x50], 2
test eax, eax
je 0x45753a
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::Attach
test esi, esi
je 0x457552
mov esi, dword [esi + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.0044c000
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x457578
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
jmp 0x45757a
xor esi, esi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push 0xcc0020
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x68]
push ebx
push ebp
push edx
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
pop ebp
pop ebx
test esi, esi
je 0x4575bc
mov edx, dword [esp + 0x34]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0
call fcn.0047d630
mov ecx, dword [esp + 0xc]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x40]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4