Function at 0x40eec0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x589c40]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
lea ebx, [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x1c], eax
call fcn.0040f3f0
mov edx, dword [esi]
add esp, 4
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
jge 0x40f2f5
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x30]
jge 0x40f2f5
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub ebx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40f2d5
cmp dword [ebp + 0x10], 3
je 0x40f2d5
mov edx, dword [esp + 0x38]
cmp edx, eax
jge 0x40efa7
test edi, edi
je 0x40ef5f
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
push edx
push ecx
lea edx, [esp + 0x64]
push edx
jmp 0x40ef70
mov ecx, dword [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
push edx
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
push esi
mov eax, edi
call fcn.0040e980
mov ecx, dword [esp + 0x4c]
add esp, 8
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x40f00a
test edi, edi
je 0x40efc6
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x64]
push edx
jmp 0x40efd7
mov edx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
push esi
mov eax, edi
call fcn.0040e980
add esp, 8
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x70]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
lea edi, [esp + 0x58]
mov dword [esp + 0x50], eax
call fcn.0040e790
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub edi, dword [esp + 0x58]
sub eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
add esp, 4
xor ecx, ecx
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 8]
shl eax, 4
mov edi, edx
neg edi
sbb edi, edi
and edi, 0xfffffff0
add ecx, 0xb
shl ecx, 4
add edi, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 4
test edx, edx
je 0x40f1ab
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffc
cmp ecx, 4
jle 0x40f13a
lea ebx, [ebx]
push 0xcc0020
lea ecx, [edi + 4]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ebx
push 8
push eax
push ecx
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, 8
add ecx, 0xfffffffc
mov dword [esp + 0x1c], eax
cmp eax, ecx
mov eax, dword [esp + 0x20]
jl 0x40f100
mov edx, dword [esp + 0x14]
push 0xcc0020
push edi
push eax
push ebx
push 4
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0xcc0020
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push 4
push edx
add eax, 0xfffffffc
push eax
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
cmp eax, 0x18
jle 0x40f269
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push 0xcc0020
push edi
push ecx
push ebx
push 0x10
add eax, 0xfffffff0
push edx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
jmp 0x40f262
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffffc
cmp ecx, 4
jle 0x40f1fa
jmp 0x40f1c0
mov ecx, dword [esp + 0x1c]
push 0xcc0020
push edi
add eax, 4
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push 8
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, 8
add ecx, 0xfffffffc
mov dword [esp + 0x1c], eax
cmp eax, ecx
mov eax, dword [esp + 0x20]
jl 0x40f1c0
mov edx, dword [esp + 0x10]
push 0xcc0020
push edi
push eax
push ebx
push edx
push 4
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push 0xcc0020
push edi
add eax, 0xc
push eax
mov eax, dword [esp + 0x20]
push ebx
push ecx
push 4
push 0
add eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
cmp eax, 0x18
jle 0x40f269
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0xcc0020
push edi
push edx
push ebx
add eax, 0xfffffff0
push ecx
cdq
push 0x10
sub eax, edx
push 0
sar eax, 1
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
push 0xcc0020
push 0
push 0
push esi
sub edx, eax
push edx
mov edx, dword [esp + 0x70]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x48]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call edi
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x4c]
push eax
push ebx
call edi
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esp + 0x58]
call fcn.0040e830
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x1c]
add esp, 4
mov ecx, edi
push ecx
push esi
call fcn.0040e980
add esp, 8
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005121e3
mov esp, ebp
pop ebp
ret