Function at 0x479950
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp byte [ebp + 8], 0x64
push ebx
push esi
push edi
mov edi, eax
mov esi, ecx
jbe 0x47996a
mov byte [ebp + 8], 0x64
xor eax, eax
mov dword [esp + 0x2c], eax
cmp edi, eax
jne 0x47998c
cmp esi, eax
je 0x47997b
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x2c], 1
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebx
push edi
mov dword [esp + 0x18], eax
call ebx
push edi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x45c]
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x508]
sub ecx, dword [esi + 0x500]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x50c]
sub eax, dword [esi + 0x504]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x14]
push eax
push edx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [esi + 0x508]
sub ecx, dword [esi + 0x500]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x50c]
sub eax, dword [esi + 0x504]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x500]
push 0xcc0020
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x508]
sub eax, dword [esi + 0x474]
push 0
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x50c]
sub ecx, dword [esi + 0x478]
push 0
sub ecx, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
push 0
push eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esi + 0x4e0]
lea ecx, [esi + 0x54]
call fcn.004707d0
cmp dword [esi + 0x464], 0
je 0x479abc
cmp dword [esi + 0x468], 0
je 0x479abc
cmp dword [esi + 0x46c], 0
je 0x479abc
mov eax, dword [esi + 0x488]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x144]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x460]
test eax, eax
jne 0x479b2c
mov eax, dword [esi + 0x50c]
sub eax, dword [esi + 0x504]
mov ecx, dword [esi + 0x508]
sub ecx, dword [esi + 0x500]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x460], eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x500]
mov eax, dword [esi + 0x50c]
push 0xcc0020
push ecx
push edx
push edi
sub eax, ecx
mov ecx, dword [esi + 0x508]
push eax
sub ecx, edx
mov edx, dword [esp + 0x24]
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x479b34
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov edx, dword [esi + 0x50c]
mov ecx, dword [esp + 0x10]
sub edx, dword [esi + 0x504]
mov eax, dword [esi + 0x508]
sub eax, dword [esi + 0x500]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esi + 0x504]
push edx
mov edx, dword [esi + 0x500]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esi + 0x474], 0
jne 0x479b8b
cmp dword [esi + 0x478], 0
je 0x479cc0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0x484]
push 0x64
mov ecx, 0x64
sub ecx, eax
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov cl, al
movzx eax, cl
mov edx, 0xff
sub edx, eax
movzx eax, byte [ebp + 8]
imul edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add cl, al
movzx eax, cl
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0xff0062
push 0
push 0
push 0
push ecx
push edx
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x488]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 0x480]
mov eax, dword [esi + 0x47c]
mov ecx, dword [esi + 0x470]
push edx
push eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x478]
push edx
mov edx, dword [esi + 0x474]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00468ba0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x488]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
movzx ecx, byte [ebp + 8]
mov eax, dword [esp + 0x1c]
mov edx, 0x64
sub edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 0x504]
push eax
mov eax, dword [esi + 0x500]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
call fcn.00466ad0
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esi + 0x50c]
mov eax, dword [esp + 0xc]
sub ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x508]
sub edx, dword [esi + 0x500]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esi + 0x504]
push ecx
mov ecx, dword [esi + 0x500]
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call ebx
mov eax, dword [esp + 0x44]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call ebx
cmp dword [esp + 0x2c], 0
je 0x479db3
mov esi, dword [esi + 0x20]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4