Function at 0x4caa30
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx + 4]
push ebp
mov ebp, dword [esp + 0x80]
xor ecx, ecx
test ebp, ebp
je 0x4caa4c
shr eax, 2
and eax, 3
and eax, 3
cmp dword [ebx + 0x70], 3
jne 0x4caa62
cmp ebp, dword [ebx + 0x74]
jne 0x4caa62
mov ecx, 1
test eax, eax
jne 0x4caa79
cmp dword [ebx + 0x54], eax
je 0x4caa83
test ecx, ecx
je 0x4caa8f
mov dword [esp + 0x78], 3
jmp 0x4caa97
mov dword [esp + 0x78], 4
jmp 0x4caa97
test ecx, ecx
mov dword [esp + 0x78], 2
jne 0x4caa97
mov dword [esp + 0x78], 1
push ebp
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.004ca3f0
mov edx, dword [ebx]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x58], eax
jge 0x4caf34
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x54], ecx
jge 0x4caf34
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push esi
push edi
mov edi, dword [esp + 0x70]
mov esi, edx
sub esi, eax
sub edi, ecx
cmp edi, esi
jl 0x4caf0f
cmp dword [esp + 0x80], 4
je 0x4caf0f
cmp ecx, eax
mov esi, dword [sym.imp.USER32.dll_SetRect]
jge 0x4cab66
test ebp, ebp
je 0x4cab1a
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x60]
push edx
push ecx
push eax
jmp 0x4cab26
mov edx, dword [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0x68]
push eax
push ecx
lea ecx, [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x84]
push ebp
lea edx, [esp + 0x30]
push edx
push edi
push ebx
call fcn.004ca300
mov edx, dword [esp + 0x88]
add esp, 0x10
jmp 0x4cab6d
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x70]
cmp edx, eax
jge 0x4cabc8
test ebp, ebp
je 0x4cab8c
mov ecx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x68]
push eax
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
jmp 0x4cab9d
mov ecx, dword [esp + 0x68]
push ecx
push eax
mov eax, dword [esp + 0x68]
push eax
push edx
lea ecx, [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
push ebp
lea edx, [esp + 0x30]
push edx
push edi
push ebx
call fcn.004ca300
add esp, 0x10
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call esi
mov edi, eax
mov eax, dword [ebx + 0x78]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x24], eax
call fcn.004ca740
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
sub ebx, dword [esp + 0x38]
sub ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x90]
add esp, 0xc
xor eax, eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
call esi
push ebp
mov esi, eax
mov eax, dword [esp + 0x88]
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x80]
sub eax, 1
je 0x4cace1
sub eax, 1
je 0x4cacaf
sub eax, 1
jne 0x4cad1e
mov ecx, dword [esp + 0x88]
test ecx, ecx
mov eax, 0x5631d8
jne 0x4cac92
mov eax, 0x563268
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov eax, 0x5631e0
jne 0x4cad11
mov eax, 0x563270
jmp 0x4cad11
mov ecx, dword [esp + 0x88]
test ecx, ecx
mov eax, 0x5631a8
jne 0x4cacc4
mov eax, 0x563238
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov eax, 0x5631b0
jne 0x4cad11
mov eax, 0x563240
jmp 0x4cad11
mov ecx, dword [esp + 0x88]
test ecx, ecx
mov eax, 0x563178
jne 0x4cacf6
mov eax, 0x563208
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov eax, 0x563180
jne 0x4cad11
mov eax, 0x563210
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp dword [esp + 0x88], 0
mov dword [esp + 0x88], 4
je 0x4cadec
lea eax, [ebp - 4]
cmp eax, 4
jle 0x4cad7f
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
push 0xcc0020
add eax, 4
push eax
mov eax, dword [esp + 0x24]
push eax
push edi
push 8
push ebx
push ecx
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x88]
add eax, 8
lea ecx, [ebp - 4]
cmp eax, ecx
mov dword [esp + 0x88], eax
jl 0x4cad40
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0xcc0020
push edx
push eax
push edi
push 4
push ebx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
add ecx, 0xc
push ecx
push edx
push edi
push 4
push ebx
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebp, 0x18
jle 0x4caeaa
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0xcc0020
push eax
push ecx
push edi
lea eax, [ebp - 0x10]
cdq
push 0x10
sub eax, edx
push ebx
sar eax, 1
push eax
push 0
jmp 0x4caea3
lea eax, [ebx - 4]
cmp eax, 4
jle 0x4cae3f
jmp 0x4cae00
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0xcc0020
push edx
add eax, 4
push eax
mov eax, dword [esp + 0x94]
push edi
push ebp
push 8
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x88]
add eax, 8
lea ecx, [ebx - 4]
cmp eax, ecx
mov dword [esp + 0x88], eax
jl 0x4cae00
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push ecx
push edx
push edi
push ebp
push 4
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0xcc0020
push eax
add ecx, 0xc
push ecx
push edi
push ebp
push 4
push 0
lea eax, [ebx - 4]
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, 0x18
jle 0x4caeaa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0xcc0020
push edx
push eax
push edi
lea eax, [ebx - 0x10]
push ebp
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 + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0xa0]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
push eax
push edi
call ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebp
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.004ca7e0
mov eax, dword [esp + 0x90]
push ebp
lea edx, [esp + 0x3c]
push edx
push eax
push ebx
call fcn.004ca300
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret