Function at 0x470ec0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f30b8
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 0x471225
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x88]
test eax, eax
je 0x471225
mov eax, dword [esi + 0x94]
xor ebx, ebx
cmp eax, ebx
je 0x471225
cmp dword [eax + 0x20], ebx
je 0x471225
mov eax, dword [esp + 0x68]
mov edi, dword [esi + 0x24c]
mov edx, dword [ebp]
mov ecx, dword [eax]
mov eax, dword [ecx - 8]
mov ecx, ebp
imul edi, eax
lea eax, [esp + 0x18]
push eax
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 0x470f6b
sub eax, ecx
cmp edi, eax
jg 0x470f79
add ecx, edi
mov dword [esp + 0x20], ecx
jmp 0x470f79
mov edx, eax
sub edx, ecx
cmp edi, edx
jg 0x470f79
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 + 0x258]
mov eax, dword [esi + 0x250]
mov ecx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x20]
mov edi, eax
sub edi, ecx
cmp edx, edi
jle 0x47101c
mov ebx, dword [esi + 0x250]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp ebx, ecx
mov ebp, ecx
mov dword [esp + 0x50], eax
jge 0x470fea
mov ecx, ebx
mov dword [esp + 0x18], ecx
mov ebx, dword [esi + 0x258]
cmp ebx, eax
jle 0x470ffa
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebx, edx
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], ebx
mov ebx, dword [esp + 0x50]
mov dword [esi + 0x258], ebx
mov ebx, edi
mov dword [esi + 0x25c], ebx
jmp 0x47103c
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x250], ecx
mov dword [esi + 0x254], edx
mov dword [esi + 0x258], eax
mov dword [esi + 0x25c], 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 0x471063
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebp, dword [esi + 0x258]
cmp ebp, ebx
jg 0x47106f
mov ebx, ebp
mov dword [esi + 0x258], ebx
lea ebx, [esi + 0x184]
test ebx, ebx
je 0x471086
mov ebp, dword [ebx + 4]
test ebp, ebp
jne 0x4710b2
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 0x471225
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 0x471225
lea ecx, [esp + 0x48]
call fcn.004e2234
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 0x471200
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 0x4711e2
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 0x4711d7
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