Function at 0x40fa46
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
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 dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push dword [eax*4 + 0x41bfc8]
lea esi, [eax*4 + 0x41bfc8]
call fcn.0040fece
push dword [esi]
mov dword [ebp - 8], eax
call fcn.0040ff18
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40faa7
cmp eax, ebx
jne 0x40faa7
lea eax, [ebp + 0xf]
jmp 0x40fd17
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40fad6
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 0x40fd17
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x40fb03
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0xf]
jmp 0x40fd17
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call fcn.0040ff57
pop ecx
pop ecx
push 0xcc0020
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 8]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x40fb63
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0xf]
jmp 0x40fd17
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x40fbc7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x14
push eax
call dword [0x41bf1c]
test eax, eax
je 0x40fbc7
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x40fbc7
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
sub esi, dword [ebp - 0x84]
sub ebx, dword [ebp - 0x80]
push dword [ebp - 0x78]
sub esi, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x10]
call edi
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x54]
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawIcon]
xor ebx, ebx
lea eax, [ebp - 0x74]
push eax
push 0x18
pop esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x40fbf9
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0xf]
jmp 0x40fd17
mov eax, dword [ebp - 0x62]
push 1
imul eax, dword [ebp - 0x64]
pop edx
cmp ax, dx
jne 0x40fc10
mov dword [ebp + 0xc], edx
jmp 0x40fccb
push 4
pop ecx
cmp ax, cx
ja 0x40fc20
mov dword [ebp + 0xc], ecx
jmp 0x40fccb
push 8
pop ecx
cmp ax, cx
jbe 0x40fc18
push 0x10
pop ecx
cmp ax, cx
jbe 0x40fc18
cmp ax, si
ja 0x40fcc4
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 - 0x70]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 8], eax
mov ax, word [ebp - 0x64]
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x62]
mov word [esi + 0xe], ax
jae 0x40fc7b
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 - 8], eax
jne 0x40fcdd
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0xf]
jmp 0x40fd17
mov dword [ebp + 0xc], 0x20
mov cl, byte [ebp + 0xc]
shl edx, cl
lea eax, [edx*4 + 0x28]
push eax
jmp 0x40fc3e
push ebx
push esi
push eax
movzx eax, word [esi + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40fd2b
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0x10]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp + 0xf]
mov ecx, dword [ebp + 8]
push eax
push 0x415664
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 0x40fdff
mov word [ebp - 0x38], 0x4d42
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
mov word [ebp - 0x32], bx
mov word [ebp - 0x30], bx
lea eax, [eax + ecx + 0xe]
mov dword [ebp - 0x36], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea eax, [ecx + eax*4 + 0xe]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2e], 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 - 0x48]
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 - 0x38]
push 0xe
push eax
lea ecx, [ebp - 0x28]
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 - 0x28]
lea ecx, [ebp - 0x48]
push eax
call dword [0x4152e8]
push 0x28
push esi
lea ecx, [ebp - 0x28]
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 - 0x28]
lea ecx, [ebp - 0x48]
push eax
call dword [0x4152e8]
push dword [esi + 0x14]
lea ecx, [ebp - 0x28]
push dword [ebp - 8]
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 - 0x28]
lea ecx, [ebp - 0x48]
push eax
call dword [0x4152e8]
push dword [ebp + 0x10]
call edi
push dword [ebp - 8]
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 - 0x48]
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 - 0x48]
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 - 0x28]
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