Function at 0x542d90
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
test eax, eax
je 0x542dbd
jmp 0x542de2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.005b87c0
mov edx, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
test eax, eax
je 0x542ddd
jmp 0x542de2
jmp 0x54329c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
call fcn.005432b0
mov byte [ebp - 0x9c], al
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
call fcn.0053ef90
mov byte [ebp - 0xa0], al
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
cmp byte [eax + 0x4e], 0
jne 0x542e3b
jmp 0x542e1b
cmp byte [ebp - 0xa0], 0
jne 0x542e26
jmp 0x542e4b
mov al, byte [ebp - 0x9c]
test al, al
je 0x542e3b
jmp 0x542e32
mov eax, dword [ebp - 4]
test eax, eax
jne 0x542e3b
jmp 0x542e4b
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_GetParent
mov dword [ebp - 0x80], eax
jmp 0x542e52
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x74]
cmp byte [eax + 0x4e], 0
jne 0x542e60
jmp 0x542e6a
mov eax, 1
call fcn.0053ef00
mov eax, dword [ebp - 4]
test eax, eax
je 0x542e73
jmp 0x542ea1
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
cmp byte [eax + 0x33e], 0
jne 0x542e98
jmp 0x542e84
call fcn.004ca890
mov ebx, eax
mov eax, ebx
call fcn.004caa90
test al, al
jne 0x542e98
jmp 0x542ea1
mov byte [ebp - 0x98], 1
jmp 0x542ea8
mov byte [ebp - 0x98], 0
cmp byte [ebp - 0x98], 0
jne 0x542eb6
jmp 0x542fab
mov eax, dword [0x605880]
test eax, eax
jne 0x542ec1
jmp 0x542eee
lea edi, [ebp - 0xb4]
mov esi, 0x605880
cld
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, 0x605880
mov cl, 0
mov edx, 0x10
call fcn.00403750
mov byte [ebp - 0xa4], 1
jmp 0x542ef5
mov byte [ebp - 0xa4], 0
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [0x605880], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0050b710
mov eax, dword [0x605888]
cmp eax, dword [ebp - 0x84]
jl 0x542f36
jmp 0x542f27
mov eax, dword [0x60588c]
cmp eax, dword [ebp - 0x88]
jl 0x542f36
jmp 0x542f8f
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
mov eax, dword [0x605884]
test eax, eax
jne 0x542f4b
jmp 0x542f56
push dword [0x605884]
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x84]
mov dword [0x605888], eax
mov eax, dword [ebp - 0x88]
mov dword [0x60588c], eax
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push dword [ebp - 0xc]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x605884], eax
push dword [ebp - 0xc]
push 0
call sub.user32.dll_ReleaseDC
push dword [0x605884]
push dword [0x605880]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
mov eax, dword [0x605880]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov byte [eax - 0x5c], 0
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0xd8]
mov eax, 1
call fcn.0040b8a0
call fcn.0040d8a0
push eax
test eax, eax
jne 0x543229
mov eax, dword [ebp - 4]
test eax, eax
je 0x542fe2
jmp 0x5430c3
call fcn.004ca890
mov ebx, eax
mov eax, ebx
call fcn.004caa90
test al, al
jne 0x542ff6
jmp 0x543000
mov eax, 3
call fcn.0053ef00
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
call fcn.004ca890
mov ebx, eax
mov eax, ebx
call fcn.004caa90
test al, al
jne 0x543026
jmp 0x543033
mov eax, dword [0x605870]
shr eax, 2
mov dword [0x605870], eax
cmp byte [ebp - 0x98], 0
jne 0x543041
jmp 0x5430c1
push 1
mov ecx, 1
mov edx, 0
mov eax, 0
call fcn.0050acb0
mov dword [ebp - 0x14], eax
push 4
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.gdi32.dll_GetRandomRgn
cmp eax, 1
je 0x54306e
jmp 0x5430b9
mov eax, dword [0x63d660]
cmp eax, 2
je 0x54307a
jmp 0x5430ab
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x78]
neg eax
push eax
mov eax, dword [ebp - 0x7c]
neg eax
push eax
push dword [ebp - 0x14]
call sub.gdi32.dll_OffsetRgn
push dword [ebp - 0x14]
push dword [0x605880]
call sub.gdi32.dll_SelectClipRgn
push dword [ebp - 0x14]
call sub.gdi32.dll_DeleteObject
jmp 0x5430d0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x5430d9
jmp 0x5430f4
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x80]
call fcn.005b8650
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
lea edx, [ebp - 0x74]
call fcn.005b83e0
mov dword [ebp - 0x64], 0xf
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov al, byte [ebp - 0x98]
test al, al
je 0x54311b
jmp 0x543121
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov al, byte [ebp - 0xa0]
test al, al
je 0x54312d
jmp 0x54315f
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
or dword [eax + 0x344], 0x20
push 0
push dword [ebp - 0x60]
push 0x14
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
call fcn.00577740
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
and dword [eax + 0x344], 0xffffffdf
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x543168
jmp 0x543192
push dword [ebp - 0x60]
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x60]
call fcn.0053ee40
push dword [ebp - 0x8c]
push dword [ebp - 0x60]
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 4]
test eax, eax
je 0x5431a7
jmp 0x54319b
mov al, byte [ebp - 0xa0]
test al, al
je 0x5431a7
jmp 0x5431df
push dword [ebp - 0x60]
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x60]
call fcn.0050cbd0
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0x4c]
lea edx, [ebp - 0x64]
call fcn.005c69f0
push dword [ebp - 0x8c]
push dword [ebp - 0x60]
call sub.gdi32.dll_RestoreDC
cmp byte [ebp - 0x98], 0
jne 0x5431ea
jmp 0x543211
push 0xcc0020
push 0
push 0
push dword [0x605880]
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push 0
push 0
push dword [ebp - 0xc]
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
test eax, eax
je 0x54321a
jmp 0x543229
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call sub.user32.dll_EndPaint
call fcn.0040bb70
cmp byte [ebp - 0x98], 0
jne 0x543239
jmp 0x54328d
mov edx, dword [ebp - 0x10]
mov eax, dword [0x605880]
call fcn.0050c040
mov eax, dword [0x605880]
call fcn.0050ad20
mov dword [0x605880], 0
cmp byte [ebp - 0xa4], 0
jne 0x543265
jmp 0x54328d
mov eax, dword [0x605884]
test eax, eax
jne 0x543270
jmp 0x54327a
mov eax, dword [0x605884]
call fcn.0050ad50
mov edi, 0x605880
lea esi, [ebp - 0xb4]
cld
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop eax
test eax, eax
je 0x54329c
dec eax
test eax, eax
je 0x543297
call fcn.0040bce0
mov ebx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xe0]
leave
ret