Function at 0x542769
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x104
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.0053c9f0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
push eax
call fcn.0044ebdc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [0x582f80]
cmp eax, edx
jne 0x5427f6
push dword [ebp + 8]
call fcn.0053cba5
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x5427d6
mov eax, dword [0x5778c4]
mov dword [ebp - 0x54], eax
jmp 0x5427ee
push dword [ebp + 8]
call fcn.00456259
add eax, 0x40
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.0052e664
mov eax, dword [ebp - 0x54]
jmp 0x542b33
mov eax, dword [0x582e84]
mov edx, dword [ebp - 0x50]
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, 0
je 0x54287b
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.0053c9f0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
fstp dword [esp]
call fcn.0053c891
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
push eax
fild dword [esp]
fstp dword [esp]
call fcn.0053c891
mov dword [ebp - 0x2c], eax
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x24]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x24]
mov dword [eax + 4], edx
mov eax, dword [0x583a1c]
mov dword [ebp - 0x10], eax
jmp 0x5428e3
push dword [ebp + 8]
call fcn.0053cba5
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x54289c
mov eax, dword [0x5778c4]
jmp 0x542b33
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_GetWindowRect]
lea eax, [ebp - 0x24]
mov eax, dword [eax + 8]
xchg edx, eax
lea eax, [ebp - 0x24]
mov eax, dword [eax]
xchg edx, eax
sub eax, edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
mov eax, dword [eax + 0xc]
xchg edx, eax
lea eax, [ebp - 0x24]
mov eax, dword [eax + 4]
xchg edx, eax
sub eax, edx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [0x582f48]
cmp eax, edx
jne 0x5429d9
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_ReleaseDC]
push 0
push 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.0043abb2
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
call fcn.0048aefa
push eax
call fcn.0047307e
mov dword [ebp - 0x54], eax
push dword [ebp + 8]
call fcn.00456259
add eax, 0x160
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
jne 0x542964
xor eax, eax
inc eax
push eax
xor eax, eax
inc eax
push eax
xor eax, eax
push eax
xor eax, eax
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x54]
push dword [ebp - 0xc]
call fcn.005476d2
jmp 0x5429d1
mov eax, 0x7fffffff
push dword [ebp - 4]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call 0x542977
pop eax
add eax, 0x3b
mov dword [ebp - 8], eax
xor eax, eax
inc eax
push eax
xor eax, eax
push eax
push dword [ebp - 0x54]
push dword [ebp - 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.005348e6
xor eax, eax
inc eax
push eax
xor eax, eax
push eax
xor eax, eax
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.00535005
mov esp, ebp
sub esp, 0x114
pop dword [ebp - 8]
pop dword [ebp - 4]
mov eax, 0
xchg edx, eax
mov eax, dword [0x54902c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x54]
jmp 0x542b33
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.DLL_SelectObject]
mov eax, dword [ebp - 0x44]
cmp eax, 0
je 0x542a46
mov eax, 0xcc0020
or eax, 0x40000000
push eax
lea eax, [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x24]
mov eax, dword [eax]
push eax
push dword [0x583a1c]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.DLL_BitBlt]
jmp 0x542af9
mov eax, dword [0x583b6c]
cmp eax, 0
je 0x542a65
push 2
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_PrintWindow]
jmp 0x542af9
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x4c]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x4c]
mov dword [eax + 4], edx
mov eax, dword [0x582e90]
mov edx, dword [ebp - 0x50]
cmp eax, edx
jne 0x542ace
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_ClientToScreen]
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
xchg edx, eax
lea eax, [ebp - 0x24]
mov eax, dword [eax]
xchg edx, eax
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x4c]
mov dword [eax], edx
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 4]
xchg edx, eax
lea eax, [ebp - 0x24]
mov eax, dword [eax + 4]
xchg edx, eax
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x4c]
mov dword [eax + 4], edx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_PrintWindow]
push 0
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.0053141b
push 0
push dword [ebp - 0x30]
call fcn.0043b66c
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.DLL_DeleteDC]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.DLL_DeleteObject]
mov eax, dword [ebp - 0x44]
xor al, 1
cmp eax, 0
je 0x542b30
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_ReleaseDC]
mov eax, dword [ebp - 0x34]
leave
ret 4