Function at 0x40a8d0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48871d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x504a70]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
push 0x105
xor ebx, ebx
mov esi, ecx
mov eax, dword [esi + 0x20]
push ebx
push ebx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
sub esi, dword [esp + 0x5c]
sub edi, dword [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.0045e36e
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
call fcn.0045df88
mov dword [esp + 0x6e0], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40a97c
xor eax, eax
jmp 0x40a97f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call fcn.0045e37c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
mov byte [esp + 0x6e0], 1
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push edi
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.0045e5b4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.0045e639
mov ecx, dword [esp + 0x28]
push 0xcc0020
push ebx
push ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push eax
push edi
push esi
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40a9fb
xor eax, eax
jmp 0x40a9fe
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.0045e639
lea ecx, [esp + 0x24]
call fcn.0045e3e0
push str.gdiplus.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, ebx
jne 0x40ab7e
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0040a6e0
add esp, 8
push ebx
push ebx
push str.BMP_Files__.bmp_.bmp
push 0x800006
push ebx
push 0x4f2610
push ebx
lea ecx, [esp + 0xc8]
mov esi, eax
call fcn.004627fc
lea ecx, [esp + 0xac]
mov byte [esp + 0x6e0], 2
call fcn.004626cd
cmp eax, 1
jne 0x40ab00
lea ecx, [esp + 0x3c]
call fcn.00462ee4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xb0]
mov byte [esp + 0x6e4], 3
call fcn.004629ad
push ebx
mov byte [esp + 0x6e4], 4
mov eax, dword [eax]
push 0x1001
push eax
lea ecx, [esp + 0x48]
call fcn.00463352
test eax, eax
mov byte [esp + 0x6e0], 3
mov eax, dword [esp + 0x20]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aadc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x40ab14
push ebx
push 0x10
push str.Could_not_save_image.
call fcn.0045dce2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6e0], 2
call fcn.00462fe0
mov byte [esp + 0x6e0], 1
lea ecx, [esp + 0xac]
jmp 0x40ad1b
mov cl, byte [esi + 0xe]
mov edi, 1
push esi
shl edi, cl
mov word [esp + 0x50], 0x4d42
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
mov ecx, dword [esi]
add eax, 0xe
mov dword [esp + 0x4e], eax
lea edx, [ecx + edi*4 + 0xe]
push 0xe
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
mov word [esp + 0x5a], bx
mov word [esp + 0x5c], bx
mov dword [esp + 0x5e], edx
call fcn.00462c32
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.00462c32
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
lea ecx, [esp + 0x3c]
call fcn.00462e82
jmp 0x40aaef
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x40abc5
push ebx
push 0x10
push str.Could_not_initialize_GDI_API.
call fcn.0045dce2
jmp 0x40ad20
push 0x10
call fcn.00456d1d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ac03
mov edi, dword [esp + 0x1c]
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x10]
push ecx
push eax
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x40ac05
xor esi, esi
mov dword [esp + 0x7c], vtable.QColorQuantizer.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov byte [esp + 0x98], bl
push 0x100
push 1
push esi
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x6f0], 5
call fcn.0040c250
push ebx
push ebx
push str.GIF_Files__.gif_.gif
push 0x800006
push ebx
push 0x4f26b8
push ebx
lea ecx, [esp + 0x3d8]
mov esi, eax
call fcn.004627fc
lea ecx, [esp + 0x3bc]
mov byte [esp + 0x6e0], 6
call fcn.004626cd
cmp eax, 1
jne 0x40ad02
lea ecx, [esp + 0x9c]
push ecx
call fcn.0040a5e0
add esp, 4
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x3c0]
call fcn.004629ad
mov eax, dword [eax]
mov edx, dword [esi + 4]
push ebx
lea ecx, [esp + 0xa0]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x40accf
mov dword [esi + 8], eax
mov esi, eax
jmp 0x40acd1
xor esi, esi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40ad02
push ebx
push 0x10
push str.Could_not_save_image.
call fcn.0045dce2
mov ecx, dword [esp + 0x38]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x6e0], 5
lea ecx, [esp + 0x3bc]
call fcn.004627bb
mov byte [esp + 0x6e0], bl
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CBitmap.0
call fcn.004015a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x6e0], 0xffffffff
call fcn.0045e3f6
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.0046875c
mov esp, ebp
pop ebp
ret