Function at 0x4dace0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4db154
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x14], eax
mov eax, dword [0x521eac]
mov eax, dword [eax]
call fcn.004b48c8
call fcn.004b3cb8
push eax
mov eax, dword [0x521eac]
mov eax, dword [eax]
call fcn.004b48c8
call fcn.004b3d00
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4db12c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SelectObject
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x521eac]
mov eax, dword [eax]
call fcn.004b48c8
call fcn.004b3cb8
push eax
mov eax, dword [0x521eac]
mov eax, dword [eax]
call fcn.004b48c8
call fcn.004b3d00
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_BitBlt
push 0
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4cef1c]
call fcn.004d9c88
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4db0fa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
je 0x4dae7b
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4d4498]
call fcn.004d9d34
mov dword [ebp - 0x20], eax
push 0x40400000
mov eax, 0xff
call fcn.004cc6d0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4d1394]
call fcn.004d9820
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4dae74
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x48]
sub eax, 3
push eax
lea eax, [ebp - 0x4c]
call fcn.0040dd40
add eax, 6
push eax
lea eax, [ebp - 0x4c]
call fcn.0040dd50
add eax, 6
push eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004d9dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dae7b
mov eax, dword [ebp - 0x24]
call fcn.00406500
mov eax, dword [ebp - 0x20]
call fcn.00406500
ret
cmp dword [ebp + 8], 0
je 0x4daf27
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4d4498]
call fcn.004d9d34
mov dword [ebp - 0x20], eax
push 0x40400000
mov eax, 0xff
call fcn.004cc6d0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4d1394]
call fcn.004d9820
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4daf20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x48]
sub eax, 3
push eax
lea eax, [ebp - 0x4c]
call fcn.0040dd40
add eax, 6
push eax
lea eax, [ebp - 0x4c]
call fcn.0040dd50
add eax, 6
push eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004d9dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4daf27
mov eax, dword [ebp - 0x24]
call fcn.00406500
mov eax, dword [ebp - 0x20]
call fcn.00406500
ret
cmp byte [ebp - 5], 0
je 0x4db035
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4d4498]
call fcn.004d9d34
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4db02e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x524c54]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4db018
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [0x524c54]
mov dl, 1
mov eax, dword [0x4da4ec]
call fcn.004db4a8
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4db011
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_GetCursorPos
fild dword [ebp - 0x34]
fstp dword [ebp - 0x60]
wait
push dword [ebp - 0x60]
fild dword [ebp - 0x30]
fstp dword [ebp - 0x64]
wait
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
call fcn.004d9af4
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
fstp dword [ebp - 0x70]
wait
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
call fcn.004d9b18
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
fild qword [ebp - 0x78]
fstp dword [ebp - 0x7c]
wait
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
call fcn.004d9e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db018
lea eax, [ebp - 0x28]
call fcn.004270c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db035
mov eax, dword [ebp - 0x20]
call fcn.00406500
ret
lea eax, [ebp - 0x80]
call fcn.004b0e90
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x5c]
call fcn.004d9fe0
mov eax, 0x20
call fcn.004050b0
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x4db0dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
mov dword [eax], 1
mov eax, dword [0x521a8c]
mov edx, dword [ebp - 0x38]
mov esi, eax
lea edi, [edx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x521e84]
mov eax, dword [eax]
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x14], 1
mov dword [ebp - 0x3c], 0x4c
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 4]
call fcn.00408f34
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x1c]
call fcn.004d9a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db0e4
mov eax, dword [ebp - 0x38]
call fcn.004050cc
ret