Function at 0x478240
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetClipBox]
test eax, eax
jne 0x47828f
mov dword [ebp - 4], 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x140]
mov edx, dword [ebp + 8]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push ebx
push ebx
push 0x66eba8
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
push 2
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x54], ebx
je 0x4782da
mov eax, dword [esi + 0xd0]
jmp 0x4782dc
xor eax, eax
mov dword [ebp - 0x34], eax
push edi
cmp dword [esi + 0x138], ebx
je 0x478462
cmp dword [ebp - 0x3c], eax
jle 0x478462
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x138]
call fcn.00477c90
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov edi, dword [esi + 0x138]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0xa8], 0
mov dword [ebp - 0x20], eax
je 0x4783c9
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x34]
push edx
push eax
call fcn.00615734
add esp, 8
lea esi, [eax + 1]
test edx, edx
jg 0x478354
mov esi, eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.00615734
add esp, 8
test edx, edx
jle 0x47836c
inc eax
mov dword [ebp - 0x14], eax
test esi, esi
js 0x478441
inc esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esi
test eax, eax
js 0x4783bc
xor esi, esi
lea ebx, [eax + 1]
jmp 0x478390
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
push edi
push eax
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
add esi, edi
dec ebx
jne 0x478390
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
add dword [ebp - 0x18], edx
dec dword [ebp - 0x1c]
jne 0x478382
jmp 0x478441
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov ebx, eax
sub eax, esi
cmp dword [ebp - 0x28], eax
jge 0x4783f3
mov ebx, dword [ebp - 0x28]
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
add ebx, esi
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x1c], edx
cmp eax, edx
jge 0x47841f
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x24]
sar edi, 1
sar ecx, 1
sub ecx, edi
lea edi, [ecx + eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push 0xcc0020
push 0
push 0
push edx
sub edi, ecx
push edi
sub ebx, esi
push ebx
push ecx
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x478462
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4