Function at 0x461310
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ed4b8
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 0x461675
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x88]
test eax, eax
je 0x461675
mov eax, dword [esi + 0x94]
xor ebx, ebx
cmp eax, ebx
je 0x461675
cmp dword [eax + 0x20], ebx
je 0x461675
mov eax, dword [esp + 0x68]
mov edi, dword [esi + 0x26c]
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 0x4613bb
sub eax, ecx
cmp edi, eax
jg 0x4613c9
add ecx, edi
mov dword [esp + 0x20], ecx
jmp 0x4613c9
mov edx, eax
sub edx, ecx
cmp edi, edx
jg 0x4613c9
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 + 0x278]
mov eax, dword [esi + 0x270]
mov ecx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x20]
mov edi, eax
sub edi, ecx
cmp edx, edi
jle 0x46146c
mov ebx, dword [esi + 0x270]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp ebx, ecx
mov ebp, ecx
mov dword [esp + 0x50], eax
jge 0x46143a
mov ecx, ebx
mov dword [esp + 0x18], ecx
mov ebx, dword [esi + 0x278]
cmp ebx, eax
jle 0x46144a
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebx, edx
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], ebx
mov ebx, dword [esp + 0x50]
mov dword [esi + 0x278], ebx
mov ebx, edi
mov dword [esi + 0x27c], ebx
jmp 0x46148c
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x270], ecx
mov dword [esi + 0x274], edx
mov dword [esi + 0x278], eax
mov dword [esi + 0x27c], 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 0x4614b3
mov eax, ebx
mov dword [esp + 0x20], eax
mov ebp, dword [esi + 0x278]
cmp ebp, ebx
jg 0x4614bf
mov ebx, ebp
mov dword [esi + 0x278], ebx
lea ebx, [esi + 0x184]
test ebx, ebx
je 0x4614d6
mov ebp, dword [ebx + 4]
test ebp, ebp
jne 0x461502
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 0x461675
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 0x461675
lea ecx, [esp + 0x48]
call fcn.004e0394
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 0x461650
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 0x461632
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 0x461627
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