Function at 0x4e16a0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x587038
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4e16ca
call sub.MFC42.DLL_CDC::DeleteDC
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4e16d9
lea ecx, [edi + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, dword [esp + 0x90]
lea eax, [esp + 0x20]
push ebx
push eax
mov ecx, edi
call fcn.004e11c0
test ebx, ebx
jne 0x4e16f5
xor eax, eax
jmp 0x4e16f8
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov esi, dword [esp + 0x94]
sub eax, ebp
sub ecx, esi
push eax
push ecx
mov ecx, dword [ebx + 4]
lea esi, [edi + 0x10]
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
test esi, esi
je 0x4e1749
mov esi, dword [esi + 4]
mov edx, dword [edi + 4]
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CBrush::CBrush
test eax, eax
je 0x4e176f
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x94]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x30], 0x5916f4
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], 0
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xa0]
mov ecx, esi
mov dword [esp + 0x88], 0xffffffff
sub ecx, ebp
cmp eax, ecx
jge 0x4e182f
mov ecx, dword [esp + 0x98]
mov edx, ebx
sub edx, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jge 0x4e182f
sub esi, eax
sub esi, ebp
mov dword [esp + 0x90], esi
fild dword [esp + 0x90]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x98]
mov ebp, dword [esp + 0x24]
sub ebx, ecx
mov esi, eax
sub ebx, ebp
mov dword [esp + 0x90], ebx
fild dword [esp + 0x90]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x20]
add ecx, esi
jmp 0x4e191e
mov edx, dword [esp + 0x98]
mov eax, esi
fld qword [0x593700]
sub eax, ebp
sub ebx, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
je 0x4e186a
fild dword [esp + 0x20]
fidiv dword [esp + 0x30]
fstp qword [esp + 0x18]
test ebx, ebx
je 0x4e1878
fstp st(0)
fild dword [esp + 0x24]
fidiv dword [esp + 0x34]
fld qword [esp + 0x18]
fcomp st(1)
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
fnstsw ax
test ah, 0x41
jne 0x4e18b1
fld qword [esp + 0x18]
fcomp qword [0x594300]
fnstsw ax
test ah, 0x40
jne 0x4e18d5
fdiv qword [esp + 0x18]
fimul dword [esp + 0x34]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x2c], eax
jmp 0x4e18d7
fcom qword [0x594300]
fnstsw ax
test ah, 0x40
jne 0x4e18d5
fld qword [esp + 0x18]
fdiv st(1)
fimul dword [esp + 0x30]
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esp + 0x28], eax
jmp 0x4e18d7
fstp st(0)
sub esi, dword [esp + 0x28]
sub esi, ebp
mov dword [esp + 0x90], esi
fild dword [esp + 0x90]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov ebp, dword [esp + 0x2c]
mov esi, eax
sub ebx, ebp
mov dword [esp + 0x90], ebx
fild dword [esp + 0x90]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x28]
lea ecx, [esi + edx]
push 0
lea edx, [eax + ebp]
sub esp, 0x10
mov ebx, esp
push edi
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, edi
mov dword [ebx + 0xc], edx
call fcn.004e10e0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e1946
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e1966
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x90], eax
jne 0x4e196d
xor eax, eax
jmp 0x4e1b93
xor esi, esi
xor ebp, ebp
push esi
push esi
push esi
push str.DISPLAY
mov dword [esp + 0xb4], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
push 0xe
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 1
jg 0x4e1a94
mov ebx, 1
mov ebp, 1
mov cl, bl
shl ebp, cl
shl ebp, 2
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x40]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x44]
mov eax, ebx
and eax, 0xffff
mov edi, dword [esp + 0x48]
imul eax, ecx
add eax, 0x1f
mov word [esp + 0x66], bx
cdq
and edx, 0x1f
mov dword [esp + 0x58], 0x28
add eax, edx
mov dword [esp + 0x5c], ecx
mov ebx, eax
mov dword [esp + 0x60], edi
sar ebx, 5
imul ebx, edi
shl ebx, 2
mov word [esp + 0x64], 1
mov dword [esp + 0x68], esi
lea eax, [ebx + ebp + 0x28]
mov dword [esp + 0x6c], esi
push eax
push 0x42
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x58]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x4e1ac6
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [esp + 0xa8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x4e1aca
cmp edi, 4
jg 0x4e1aa3
mov ebx, 4
jmp 0x4e19b8
cmp edi, 8
jg 0x4e1ab2
mov ebx, 8
jmp 0x4e19b8
xor ebx, ebx
cmp edi, 0x10
setg bl
dec ebx
and ebx, 0xfffffff8
add ebx, 0x18
jmp 0x4e19c4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x90]
push 0
lea ecx, [esi + ebp + 0x28]
push esi
push ecx
push edx
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4e1b11
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ebx, [ebx + ebp + 0x36]
xor eax, eax
add ebp, 0x36
mov word [esp + 0x30], 0x4d42
lea ecx, [ebx + 0xe]
mov dword [esp + 0x32], ebx
push ecx
push 0x42
mov word [esp + 0x3e], ax
mov word [esp + 0x40], ax
mov dword [esp + 0x42], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x30]
mov edx, eax
lea edi, [eax + 0xe]
push ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov cx, word [esp + 0x40]
mov word [edx + 0xc], cx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
mov edi, dword [esp + 0x18]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 0x18