Function at 0x51f4b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605c33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x678
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x684]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x484]
push eax
lea edx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push edx
xor edi, edi
push eax
push ecx
mov dword [ebp - 4], edi
call fcn.005c39f8
add esp, 0x14
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
mov edx, 0x69e048
mov byte [ebp - 4], 1
test edx, edx
je 0x51f623
lea eax, [ebp - 0x7c]
test eax, eax
je 0x51f623
lea ecx, [ebp - 0x284]
test ecx, ecx
je 0x51f623
push edx
lea ecx, [ebp - 0x40]
call fcn.00401ec0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 2
call fcn.0040d700
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call fcn.0040d700
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
mov ebx, dword [ebp - 0x5c]
cmp ebx, edi
jne 0x51f577
lea ebx, [ebp - 0x58]
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x68]
call fcn.00401f40
push eax
call fcn.005c2c42
mov edx, eax
push ebx
mov dword [ebp - 0x48], edx
call fcn.005c2c42
mov ecx, dword [ebp - 0x48]
add esi, ecx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005db66d
mov edx, eax
add esp, 0xc
cmp edx, edi
mov dword [ebp - 0x28], edx
je 0x51f5ff
mov ecx, esi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x68]
call fcn.00401f40
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00401f40
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00401f40
push esi
push edi
push eax
mov eax, dword [ebp - 0x28]
push ebx
push eax
call fcn.005c2bd2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005c2c42
add esp, 0x18
mov dword [ebp - 0x20], eax
xor edi, edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x30], di
mov edx, 0x69e048
mov byte [ebp - 4], 5
test edx, edx
je 0x51f743
lea eax, [ebp - 0x484]
test eax, eax
je 0x51f743
lea ecx, [ebp - 0x684]
test ecx, ecx
je 0x51f743
push edx
lea ecx, [ebp - 0x68]
call fcn.00401ec0
lea edx, [ebp - 0x484]
lea ecx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 6
call fcn.0040d700
lea eax, [ebp - 0x684]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.0040d700
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00401070
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
jne 0x51f69f
lea ebx, [ebp - 0x58]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
call fcn.00401f40
push ebx
mov edi, eax
call fcn.005c2c42
push edi
mov ebx, eax
call fcn.005c2c42
add esi, ebx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005db66d
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 0x34], edi
je 0x51f71f
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
call fcn.00401f40
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00401f40
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00401f40
push esi
push edi
push eax
mov eax, dword [ebp - 0x34]
push ebx
push eax
call fcn.005c2bd2
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005c2c42
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x28]
xor edi, edi
cmp eax, edi
jne 0x51f74f
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x84], ebx
mov eax, dword [ebp - 0x34]
cmp eax, edi
jne 0x51f76a
lea eax, [ebp - 0x30]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x80], esi
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x51f7d7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
push edi
push ecx
mov edx, dword [eax]
push edi
push ebx
push edi
push edi
push eax
call dword [edx + 0xc]
cmp eax, edi
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
jl 0x51f7d3
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x50]
push 0x666a78
push edi
push ecx
push eax
call dword [edx + 0x14]
cmp eax, edi
jge 0x51f7e6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x51f81b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51f81b
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push edi
push ecx
mov edx, dword [eax]
push edi
push esi
push edi
push edi
push eax
call dword [edx + 0xc]
cmp eax, edi
jge 0x51f854
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x51f81b
mov edx, dword [eax]
push eax
call dword [edx + 8]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x1c]
push ebx
push esi
mov edi, eax
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0051fa50
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x51f88c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0051fc00
mov dword [ebp + 0x14], eax
jmp 0x51f9b8
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x74]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x51f9b8
mov ecx, dword [ebp - 0x70]
mov eax, dword [esi]
cmp ecx, eax
jl 0x51f8bb
mov edx, dword [ebp - 0x6c]
mov eax, dword [esi + 4]
cmp edx, eax
jge 0x51f9b8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 4]
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
xor ebx, ebx
push 5
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 0x14]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x6c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push 0xcc0020
push 0
mov ecx, dword [ebp - 0x70]
push 0
push ebx
sub eax, edx
push edx
cdq
sub eax, edx
push ecx
sar eax, 1
push eax
mov eax, dword [esi]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi]
mov esi, dword [esi + 4]
xor ecx, ecx
push 0x10
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea edx, [ebp - 0x44]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
mov ecx, dword [ebp + 0x10]
push ecx
push edi
call esi
push edi
call ebx
mov edx, dword [ebp - 0x48]
push edx
call ebx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x51f9f9
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x51f9e2
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x51f9f3
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x80]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [ebp - 0x84]
push eax
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10