Function at 0x54c908
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x39], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0x31], 0
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x57], 0
jne 0x54c94e
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
je 0x54ce80
mov eax, dword [ebp - 8]
call fcn.004693fc
test eax, eax
jle 0x54ce80
xor eax, eax
push ebp
push 0x54ce79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x49]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
dec eax
je 0x54c998
lea eax, [ebp - 0x49]
xor edx, edx
call fcn.0055783c
test eax, eax
je 0x54c998
lea eax, [ebp - 0x49]
xor edx, edx
call fcn.00557870
test eax, eax
jne 0x54c9b6
mov eax, dword [ebp - 8]
call fcn.0046c6cc
xor ecx, ecx
mov edx, 0x16
call fcn.0054ce90
call fcn.004047c0
jmp 0x54ce80
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0053f08c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
call fcn.004693fc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jge 0x54cd5c
push ebp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
call fcn.0054c868
pop ecx
test al, al
je 0x54cd4d
mov eax, dword [ebp - 8]
mov edx, dword [0x47c254]
call fcn.004040cc
test al, al
je 0x54ca71
mov eax, dword [ebp - 8]
cmp byte [eax + 0x22f], 2
jne 0x54ca71
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
cmp byte [eax + 0x5b], 0
je 0x54ca71
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov edx, dword [0x461f38]
call fcn.004040cc
test al, al
je 0x54ca71
push 0
mov dx, 0x12
xor eax, eax
call fcn.004087b4
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov edx, dword [0x5a69b4]
mov edx, dword [edx]
pop ecx
call fcn.00466f84
cmp byte [ebp - 0x31], 0
jne 0x54cc00
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x54cc00
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
push ebp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
call fcn.0054c868
pop ecx
test al, al
je 0x54cbf4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
test byte [eax + 0x50], 0x40
jne 0x54cbbe
cmp byte [ebp - 0x54], 1
jne 0x54cb40
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
lea edx, [ebp - 0x84]
call fcn.00465770
lea edx, [ebp - 0x84]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
call fcn.005429a8
jmp 0x54cbf4
push 0xcc0020
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x74]
call fcn.0042d930
call fcn.00429320
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x48]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x54cbf4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
call fcn.0054c7b8
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
lea edx, [ebp - 0x84]
call fcn.00465770
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.005429a8
inc dword [ebp - 0x1c]
dec dword [ebp - 0x38]
jne 0x54cadf
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
lea edx, [ebp - 0x84]
call fcn.00465770
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RectVisible
test eax, eax
jne 0x54cc4d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
xor ecx, ecx
mov edx, 0x16
call fcn.0054cecc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.0046470c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_IntersectClipRect
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x54cccc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov bx, word [eax + 0x54]
or bx, word [0x54ce8c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov word [eax + 0x54], bx
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov ecx, dword [ebp - 0x28]
mov edx, 0xf
call fcn.00466f84
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x54cd16
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov bx, word [0x54ce8c]
not ebx
and bx, word [eax + 0x54]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov word [eax + 0x54], bx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.0046470c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_RestoreDC
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x54c9e7
cmp byte [ebp - 0x31], 0
je 0x54ce46
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x54ce46
push ebp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
call fcn.0054c868
pop ecx
test al, al
je 0x54ce37
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_GetPixel
cmp eax, 0xff00ff
je 0x54ce37
push 0xcc0020
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x48]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004693c0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x54cd77
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ce80
cmp byte [ebp - 0x31], 0
je 0x54ce78
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8