Function at 0x1001e290
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a39cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x100d0320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push str.TakeSnapShot_enter
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x84], 0xa
mov dword [ebp - 0x80], 0xa
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x84]
push edx
push 0
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x1001e3a0
push 1
push str.TakeSnapShot__BitBlt_failed_.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
lea ecx, [ebp - 0xc0]
push ecx
push 0x18
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [ebp - 0x38], 0x28
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x30], ecx
mov edx, 1
mov word [ebp - 0x2c], dx
mov eax, 0x20
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movzx ecx, word [ebp - 0x2a]
mov eax, ecx
imul eax, dword [ebp - 0xbc]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0xb8]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x8c], 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xa4], edx
cmp dword [ebp - 0x78], 0
je 0x1001e490
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x1001e48e
push 1
push str.TakeSnapShot__char__HeapAlloc_hHeap__dwFlags__dwBytes___failed.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x1001e4a4
push 1
push str.TakeSnapShot_hHeap__GetProcessHeap____failed.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
push 0
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x6c]
push edx
call fcn.1004d0a9
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x6c]
add eax, 0x36
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x3e], 0x36
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x46], ecx
mov edx, 0x4d42
mov word [ebp - 0x48], dx
lea ecx, [ebp - 0x60]
call fcn.10005430
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x68], 0
je 0x1001e55e
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push str.TakeSnapShot_DeleteObject_hbmScreen__
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0x74], 0
je 0x1001e582
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push str.TakeSnapShot_DeleteObject_hdcMemDC__
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0x70], 0
je 0x1001e5b1
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.100512e0
add esp, 0xc
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x60]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 4], 2
mov dword [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d440
mov esp, ebp
pop ebp
ret