Function at 0x40c740
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4d4aa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov eax, dword [0x50ba00]
mov dword [esp + 0x334], eax
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x2bc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2b8], ecx
mov dword [esp + 0x33c], edi
mov word [esp + 0x2bc], di
mov edx, dword [esi + 0xa94]
mov ecx, dword [esi + 0x634]
mov ebx, dword [edx]
push edi
mov dword [esp + 0x350], edi
call fcn.00429a30
mov ecx, dword [esi + 0xa94]
push eax
call dword [ebx + 0xc]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40caa5
mov eax, dword [ebx]
lea ecx, [esp + 0x2b8]
push ecx
mov ecx, ebx
call dword [eax + 0x134]
mov edx, dword [esp + 0x2b8]
cmp word [edx], di
jne 0x40c80b
mov ecx, dword [esi + 0x64c]
push 0x4de13c
call fcn.00409e90
jmp 0x40caa5
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push edi
call esi
push 1
mov ebp, eax
call esi
mov edi, eax
push 0
mov dword [esp + 0x38], edi
call fcn.00451b00
mov esi, eax
add esp, 4
test esi, esi
je 0x40c889
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x24], eax
je 0x40caa0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
jge 0x40c867
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], eax
jge 0x40c871
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jle 0x40c87f
mov ecx, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
cmp eax, edi
jle 0x40c895
jmp 0x40c88f
mov ecx, ebp
mov dword [esp + 0x1c], ecx
mov eax, edi
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
push eax
lea eax, [esp + 0x70]
push str.__s_._OnHotKey_CaptureGameArea._Begin._RECT.LEFT__d___RECT.TOP__d__RECT.RIGHT__d___RECT.BOTTOM__d_
push eax
call fcn.004c9ff0
mov esi, dword [esp + 0x374]
add esp, 0x1c
test esi, esi
je 0x40c993
lea ecx, [esp + 0x38]
call fcn.004221e0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x354], 1
call fcn.00421fe0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0xa8c]
mov edx, dword [ecx]
mov esi, dword [esp + 0x2bc]
mov edi, dword [esp + 0x3c]
call dword [edx + 0x110]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00453980
add esp, 0x10
test eax, eax
jne 0x40c96a
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.00451a70
add esp, 4
test eax, eax
je 0x40c96a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
push eax
lea eax, [esp + 0x60]
push str.__s_._CMainWnd::OnHotKey_CaptureGameArea._SaveImageToJPEG_Failed__1__
push eax
call fcn.004c9ff0
mov ecx, dword [ebp + 0x64c]
add esp, 0xc
push 0x4de1dc
call fcn.00409e90
lea ecx, [esp + 0x38]
mov byte [esp + 0x350], 0
call fcn.00422210
jmp 0x40caa0
mov ecx, dword [esp + 0x2bc]
push ecx
mov ecx, dword [ebp + 0x648]
call fcn.00435d10
lea ecx, [esp + 0x38]
mov byte [esp + 0x350], 0
call fcn.00422210
jmp 0x40caa0
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
test esi, esi
je 0x40caa0
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x40ca93
mov edx, dword [esp + 0x34]
push edx
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
je 0x40ca8c
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push eax
push ebp
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xa8c]
mov edx, dword [ecx]
mov ebp, dword [esp + 0x2bc]
xor esi, esi
call dword [edx + 0x110]
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00453980
add esp, 0x10
test eax, eax
jne 0x40ca5e
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.00451a70
add esp, 4
test eax, eax
je 0x40ca5e
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea eax, [esp + 0x60]
push str.__s_._CMainWnd::OnHotKey_CaptureGameArea._SaveImageToJPEG_Failed__2__
push eax
call fcn.004c9ff0
add esp, 0xc
jmp 0x40ca75
mov ecx, dword [esp + 0x2bc]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [edx + 0x648]
call fcn.00435d10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40ca85
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x40caa0
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x10]
pop ebp
push 0
add esi, 0x4c8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esp + 0x2b8]
pop edi
lea ecx, [esp + 0x2b8]
cmp eax, ecx
pop esi
pop ebx
je 0x40cad2
push eax
call fcn.00482838
add esp, 4
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x334]
call fcn.00482423
add esp, 0x344
ret 4