Function at 0x5450cec0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
xor ebp, ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esi + 0x4a8], eax
mov dword [esi + 0x4ac], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x5450cf03
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
sub ebx, dword [esp + 0x24]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
jne 0x5450cf41
mov eax, dword [esp + 0x38]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret 0xc
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp dword [esi + 0x494], eax
mov dword [esp + 0x18], eax
jle 0x5450cf5c
mov dword [esi + 0x494], eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x5450d339
push 1
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x5450cfa4
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x38]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x3c]
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x5450cfc6
mov ecx, dword [esp + 0x3c]
push ecx
push edi
call fcn.5450c6d0
add esp, 8
mov edx, dword [esi + 0x48]
cmp dword [edx + 4], ebx
jne 0x5450cfec
mov eax, dword [esi + 0x48c]
cmp eax, dword [esp + 0x18]
jne 0x5450cfec
mov ecx, dword [esi + 0x490]
cmp ecx, dword [esi + 0x494]
je 0x5450d0d4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x494]
push ecx
mov dword [esi + 0x48c], edx
mov edx, dword [esp + 0x40]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x490], eax
call fcn.5450c140
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebx
mov edx, dword [esi + 0x48]
neg ecx
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x48]
movzx ecx, word [eax + 0xe]
movzx eax, cx
cmp dword [esi + 0x490], eax
mov edx, 0x10
jle 0x5450d05d
cmp cx, 0x18
jne 0x5450d051
mov dword [esi + 0x494], edx
mov dword [esi + 0x490], edx
jmp 0x5450d05d
mov dword [esi + 0x494], eax
mov dword [esi + 0x490], eax
mov eax, dword [esi + 0x490]
cmp eax, 4
je 0x5450d092
cmp eax, 8
je 0x5450d092
cmp eax, edx
jne 0x5450d07d
mov dword [esi + 0x4a0], 0x5450c9b0
jmp 0x5450d09c
cmp eax, 0x20
jne 0x5450d339
mov dword [esi + 0x4a0], 0x5450ca40
jmp 0x5450d09c
mov dword [esi + 0x4a0], 0x5450c930
mov edx, dword [esi + 0x4ac]
mov ecx, dword [esi + 0x494]
push edx
push 0x440
lea eax, [esi + 0x4c]
push eax
mov dword [esi + 0x480], ecx
mov ecx, dword [esi + 0x4a8]
push 0
call ecx
test eax, eax
je 0x5450d317
mov edx, dword [esi + 0x48]
mov dword [edx + 8], 0xffffffff
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
call dword [sym.imp.GDI32.dll_GdiFlush]
mov edx, dword [esi + 0x48]
movzx eax, word [edx + 0xe]
imul eax, ebx
cdq
and edx, 7
add eax, edx
push 0
sar eax, 3
push eax
lea ecx, [esi + 0x18]
call fcn.5450f1c0
test al, al
je 0x5450d317
mov eax, dword [esi + 0x490]
imul eax, dword [esp + 0x10]
imul eax, ebx
cdq
and edx, 7
add eax, edx
push 1
sar eax, 3
push eax
lea ecx, [esi + 8]
call fcn.5450f1c0
test al, al
je 0x5450d317
mov eax, 0x38e38e39
imul dword [esp + 0x10]
mov eax, dword [esi + 0x498]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
idiv ecx
mov byte [esi + 0x49d], 0
mov dword [esp + 0x18], ecx
mov edi, edx
cmp edi, dword [esp + 0x10]
mov dword [esi + 0x498], edx
jge 0x5450d2de
mov cl, byte [esi + 0x49c]
mov edx, dword [esp + 0x14]
xor eax, eax
neg cl
mov word [esi + 6], ax
mov word [esi + 4], ax
mov word [esi + 2], ax
mov word [esi], ax
sbb ecx, ecx
and ecx, 0x40000000
add ecx, 0xcc0020
push ecx
push edi
push eax
push edx
push 1
push ebx
push eax
push eax
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, eax
test ebp, ebp
je 0x5450d2de
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.5450c780
mov ebp, eax
test ebp, ebp
je 0x5450d2de
mov eax, dword [esi + 0x490]
imul eax, edi
mov ecx, dword [esi + 0x1c]
imul eax, ebx
cdq
and edx, 7
add eax, edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x48]
mov edx, dword [edx + 0x14]
push ebx
sar eax, 3
add eax, dword [esi + 0xc]
push edx
push ecx
push eax
mov eax, dword [esi + 0x4a0]
call eax
test al, al
je 0x5450d2cc
test edi, edi
mov cx, word [esp + 0x1c]
mov dx, word [esp + 0x20]
mov byte [esi + 0x49d], 1
mov word [esi], cx
mov word [esi + 2], di
mov word [esi + 4], dx
mov word [esi + 6], 1
jle 0x5450d26a
mov edx, dword [esp + 0x40]
mov eax, edi
neg eax
push eax
mov eax, dword [esp + 0x40]
push ebx
lea ecx, [edi - 1]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, esi
call fcn.5450cad0
mov ebp, eax
test ebp, ebp
je 0x5450d2de
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
sub edx, edi
sub edx, 1
push edx
mov edx, dword [esp + 0x18]
push ebx
add edi, 1
push edi
push eax
push ecx
push edx
mov ecx, esi
call fcn.5450cad0
mov ebp, eax
test ebp, ebp
je 0x5450d2de
mov eax, dword [esi + 0x490]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 1
jge 0x5450d2ae
mov eax, 1
sub ax, word [esi]
mov ecx, esi
add word [esi + 4], ax
call fcn.5450cd20
test eax, eax
je 0x5450d2dc
movzx edi, word [esi + 6]
movzx eax, word [esi + 2]
add edi, eax
jmp 0x5450d2d0
add edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x10]
jl 0x5450d173
jmp 0x5450d2de
xor ebp, ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
add dword [esi + 0x498], 1
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x24
ret 0xc
mov edx, dword [esp + 0x38]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret 0xc