Function at 0x4a82f0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5786e8
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
lea ebp, [esi + 0x14]
mov ecx, ebp
call dword [eax + 0x90]
test eax, eax
je 0x4a865c
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x88]
test eax, eax
je 0x4a865c
mov eax, dword [esi + 0x94]
xor ebx, ebx
cmp eax, ebx
je 0x4a865c
cmp dword [eax + 0x20], ebx
je 0x4a865c
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov eax, dword [esi + 0x2d8]
mov ecx, dword [ecx - 8]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp]
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
sar edi, 1
call dword [edx + 0x74]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x6c]
add ecx, 2
sub eax, 2
cmp dl, bl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
je 0x4a83a2
sub eax, ecx
cmp edi, eax
jg 0x4a83b0
add ecx, edi
mov dword [esp + 0x20], ecx
jmp 0x4a83b0
mov edx, eax
sub edx, ecx
cmp edi, edx
jg 0x4a83b0
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [eax + 0x98]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x2e4]
mov eax, dword [esi + 0x2dc]
mov ecx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x20]
mov edi, eax
sub edi, ecx
cmp edx, edi
jle 0x4a8453
mov ebx, dword [esi + 0x2dc]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp ebx, ecx
mov ebp, ecx
mov dword [esp + 0x50], eax
jge 0x4a8421
mov ecx, ebx
mov dword [esp + 0x18], ecx
mov ebx, dword [esi + 0x2e4]
cmp ebx, eax
jle 0x4a8431
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebx, edx
mov dword [esi + 0x2dc], ebp
mov dword [esi + 0x2e0], ebx
mov ebx, dword [esp + 0x50]
mov dword [esi + 0x2e4], ebx
mov ebx, edi
mov dword [esi + 0x2e8], ebx
jmp 0x4a8473
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x2dc], ecx
mov dword [esi + 0x2e0], edx
mov dword [esi + 0x2e4], eax
mov dword [esi + 0x2e8], edi
mov ebx, dword [esp + 0x28]
mov ebp, dword [esi + 0x50]
sub ebx, ebp
mov ebp, dword [esp + 0x2c]
sub ebp, dword [esi + 0x54]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebp
mov ebp, dword [esi + 0x58]
add ebx, ebp
cmp eax, ebx
jle 0x4a849a
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebp, dword [esi + 0x2e4]
cmp ebp, ebx
jg 0x4a84a6
mov ebx, ebp
mov dword [esi + 0x2e4], ebx
lea ebx, [esi + 0x190]
test ebx, ebx
je 0x4a84bd
mov ebp, dword [ebx + 4]
test ebp, ebp
jne 0x4a84e9
mov ecx, dword [esi + 0x94]
lea eax, [esp + 0x18]
push 0
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x4a865c
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
sub eax, ebx
sub edi, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x94]
sub edx, ebp
sub ecx, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edi
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4a865c
lea ecx, [esp + 0x48]
call fcn.00564bb4
mov eax, dword [edi + 4]
mov dword [esp + 0x60], ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CDC::Attach
cmp eax, ebx
je 0x4a8637
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
mov byte [esp + 0x6c], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
cmp eax, ebx
je 0x4a8619
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esi + 0xe0]
mov ebx, eax
lea eax, [esp + 0x38]
lea ecx, [esi + 0xe0]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x4c]
sub edx, eax
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
mov ebp, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
push ebp
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebx, ebx
je 0x4a860e
mov ebx, dword [ebx + 4]
mov ecx, dword [esp + 0x4c]
push ebx
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], vtable.CObject.0
mov esi, dword [esi + 0x94]
mov edx, dword [edi + 4]
push edx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8