Function at 0x41aff0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4acbf9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d0968]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d0968]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcc]
mov edi, ecx
mov ecx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
push ecx
mov dword [esp + 0xcc], 6
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
mov edx, dword [esp + 0xd0]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
mov dword [esp + 0x3c], eax
call esi
mov eax, dword [ebp]
push eax
call ebx
mov ecx, dword [esp + 0xd4]
push ecx
push eax
mov dword [esp + 0x38], eax
call esi
mov eax, dword [ebp]
push eax
call ebx
mov edx, dword [esp + 0xd8]
mov ebx, eax
push edx
push ebx
mov dword [esp + 0x24], ebx
call esi
push 0
lea eax, [esp + 0xa0]
push eax
mov ecx, edi
call fcn.004189b0
push 1
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
mov byte [esp + 0xcc], 7
call fcn.004189b0
mov edx, dword [0x4d251c]
mov eax, dword [ebp]
push edx
push eax
call esi
mov dword [esp + 0x18], eax
mov eax, 0xa
cmp dword [esp + 0xb0], eax
ja 0x41b107
cmp dword [esp + 0x94], eax
mov dword [esp + 0x14], 0x1a
jbe 0x41b10f
mov dword [esp + 0x14], 0x10
mov ecx, dword [esp + 0x14]
push 0x21
push ecx
push ebp
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00408c20
mov ecx, dword [esp + 0x14]
push 0x21
push ecx
push ebp
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00408c20
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
push edx
call esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x38]
cmp ecx, eax
lea eax, [esp + 0x38]
jg 0x41b16e
lea eax, [esp + 0x20]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x54], eax
sub eax, ecx
add eax, 0x1a
push eax
push 0
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x78]
xor eax, eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
push 0x18
add ecx, 0xffffff9c
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x64], 0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x41b3be
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00406530
test al, al
je 0x41b3be
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xdc]
call fcn.00406530
test al, al
je 0x41b3be
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov eax, ecx
sub eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x4c]
add ebx, 2
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
mov esi, eax
xor eax, eax
sar esi, 1
cmp ecx, edx
setg al
push 0xcc0020
mov dword [edi + 0x3a4], ebx
push 0
push 0
lea eax, [eax + eax - 1]
imul esi, eax
add esi, dword [esp + 0x58]
lea eax, [esi - 2]
mov dword [edi + 0x3a8], eax
mov eax, dword [esp + 0x20]
lea ecx, [edx + esi]
mov dword [edi + 0x3ac], eax
mov dword [edi + 0x3b0], ecx
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp]
push ecx
push edx
mov edx, dword [esp + 0x70]
push edx
push esi
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
add ebx, ecx
sub eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [ebp]
push eax
push ecx
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
add ebx, dword [esp + 0x20]
cmp ebx, dword [esp + 0x18]
jl 0x41b2a3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp]
push edx
push esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0xdc], 0
je 0x41b3ba
mov eax, dword [ebp]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0xdc]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe0]
call fcn.00406530
test al, al
je 0x41b3a7
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sub edx, ecx
sar eax, 1
add eax, esi
push 0xcc0020
lea esi, [edx - 6]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x18]
push 0
add esi, 0xfffffffa
push 0
mov dword [esp + 0x34], esi
lea esi, [ecx + eax]
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x34]
mov dword [edi + 0x3b4], esi
mov esi, dword [esp + 0x3c]
push ecx
mov dword [edi + 0x3b8], eax
mov dword [edi + 0x3bc], esi
mov esi, dword [esp + 0x44]
push eax
add edx, 0xfffffff8
push edx
mov ecx, ebp
mov dword [edi + 0x3c0], esi
call fcn.00403290
test ebx, ebx
je 0x41b3ba
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
mov ebx, dword [esp + 0x1c]
jmp 0x41b3c4
mov ebx, dword [esp + 0x1c]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, 0x10
cmp dword [esp + 0x98], ebp
jb 0x41b3e2
mov edx, dword [esp + 0x84]
push edx
call fcn.004803bd
add esp, 4
cmp dword [esp + 0xb4], ebp
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], 0
mov byte [esp + 0x84], 0
jb 0x41b41a
mov eax, dword [esp + 0xa0]
push eax
call fcn.004803bd
add esp, 4
test ebx, ebx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
je 0x41b43b
push ebx
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41b446
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41b451
push eax
call esi
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00480bcf
add esp, 0xb4
ret 0x14