Function at 0x5388ab
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x34
sub eax, 0x12344321
push ebx
push esi
push edi
mov ebx, ecx
je 0x538b72
dec eax
je 0x5388d1
xor eax, eax
jmp 0x538b99
push dword [ebx + 0x14]
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 8]
push eax
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [esp + 0x10], 0
and dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
sar eax, 2
test eax, eax
jbe 0x538b25
mov edi, dword [esp + 0x1c]
lea esi, [ebx + 0x2c]
call fcn.004750c1
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0x24], esi
cmp dword [esi + 0x158], edi
je 0x5389d9
mov dword [esp + 0x20], edi
call fcn.00525861
cmp dword [ebx + 0x280], edi
je 0x538971
mov eax, dword [ebx + 0x64]
cmp eax, dword [esp + 0x1c]
je 0x5389d9
cmp dword [esp + 0x10], edi
jne 0x538989
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x5389cd
add esi, 0x118
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov esi, eax
push esi
push dword [esp + 0x18]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x24]
xor edi, edi
push edi
push edi
push dword [esp + 0x20]
push esi
call fcn.00525556
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
inc dword [esp + 0x1c]
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x538937
xor edi, edi
cmp dword [esp + 0x20], edi
jne 0x538b15
cmp dword [ebx + 0x280], edi
je 0x538a82
mov edx, dword [ebx + 0x64]
push edx
mov eax, ebx
call fcn.00527989
test eax, eax
je 0x538a82
mov edi, edx
lea esi, [ebx + 0x2c]
call fcn.004750c1
mov edi, dword [eax]
mov eax, dword [ebx + 8]
neg eax
push eax
mov eax, dword [ebx + 4]
neg eax
push eax
push dword [esp + 0x20]
mov eax, edi
push 0
mov esi, ebx
call fcn.0052774b
xor esi, esi
cmp dword [esp + 0x10], esi
jne 0x538a54
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x538a80
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov esi, eax
push esi
push dword [esp + 0x18]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp dword [ebx + 0x20], edi
je 0x538b15
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov esi, dword [sym.imp.GDI32.dll_SelectClipRgn]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], edi
je 0x538ace
push dword [ebx + 8]
push dword [ebx + 4]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [esp + 0x10]
push dword [esp + 0x18]
call esi
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 8]
push 0xcc0020
push edi
push edi
push dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x24], 1
jne 0x538b04
push dword [esp + 0x1c]
jmp 0x538b05
push edi
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x10], edi
je 0x538b25
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x28]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x14]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x20], 0
je 0x538b96
push 0x12344322
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [ebx + 0x278], 0
jmp 0x538b96
lea edi, [ebx + 0x274]
push ebx
mov dword [edi], 1
call fcn.00538ba2
test eax, eax
jne 0x538b96
lea esi, [ebx + 0x240]
call fcn.0051a49a
and dword [edi], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4