Function at 0x40f39c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
mov dword [ebp - 4], eax
call esi
push 0xa
push edi
mov dword [ebp - 0x10], eax
call esi
mov esi, eax
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f40b
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push dword [ebp - 4]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0xf]
jmp 0x40f61b
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x40f438
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0xf]
jmp 0x40f61b
push 0xcc0020
push esi
push dword [ebp - 0x10]
push ebx
push ebx
push edi
push esi
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x40f476
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0xf]
jmp 0x40f61b
cmp byte [ebp + 0xc], bl
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x40f4cb
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x14
push eax
call dword [0x41aed8]
test eax, eax
je 0x40f4cb
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x40f4cb
push dword [ebp - 0x58]
call edi
push dword [ebp - 0x5c]
call edi
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x4c]
sub eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x64]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawIcon]
lea eax, [ebp - 0x80]
push eax
push 0x18
pop esi
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x40f4fd
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call edi
lea eax, [ebp + 0xf]
jmp 0x40f61b
mov eax, dword [ebp - 0x6e]
push 1
imul eax, dword [ebp - 0x70]
pop edx
cmp ax, dx
jne 0x40f514
mov dword [ebp + 0xc], edx
jmp 0x40f5cf
push 4
pop ecx
cmp ax, cx
ja 0x40f524
mov dword [ebp + 0xc], ecx
jmp 0x40f5cf
push 8
pop ecx
cmp ax, cx
jbe 0x40f51c
push 0x10
pop ecx
cmp ax, cx
jbe 0x40f51c
cmp ax, si
ja 0x40f5c8
mov dword [ebp + 0xc], esi
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, dword [ebp + 0xc]
cmp cx, 0x18
mov dword [esi], 0x28
mov eax, dword [ebp - 0x7c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 8], eax
mov ax, word [ebp - 0x70]
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x6e]
mov word [esi + 0xe], ax
jae 0x40f57f
push 1
pop eax
shl eax, cl
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push 8
add eax, 7
pop ecx
cdq
idiv ecx
movzx ecx, word [ebp + 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], ebx
imul eax, ecx
imul eax, dword [esi + 8]
push eax
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40f5e1
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call edi
lea eax, [ebp + 0xf]
jmp 0x40f61b
mov dword [ebp + 0xc], 0x20
mov cl, byte [ebp + 0xc]
shl edx, cl
lea eax, [edx*4 + 0x28]
push eax
jmp 0x40f542
push ebx
push esi
push eax
movzx eax, word [esi + 8]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40f62f
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp + 0xf]
mov ecx, dword [ebp + 8]
push eax
push 0x41465c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
jmp 0x40f703
mov word [ebp - 0x20], 0x4d42
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
mov word [ebp - 0x1a], bx
mov word [ebp - 0x18], bx
lea eax, [eax + ecx + 0xe]
mov dword [ebp - 0x1e], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea eax, [ecx + eax*4 + 0xe]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x16], eax
lea eax, [ebp + 0xf]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea eax, [ebp + 0xf]
lea ecx, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea eax, [ebp - 0x20]
push 0xe
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x40]
push eax
call dword [0x4142e8]
push 0x28
push esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x40]
push eax
call dword [0x4142e8]
push dword [esi + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x40]
push eax
call dword [0x4142e8]
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret