Function at 0x4044a0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x52c538
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
mov eax, dword [0x578700]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub eax, ecx
mov dword [edi + 0x114], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, edx
xor esi, esi
cmp eax, esi
mov dword [edi + 0x118], edx
mov dword [edi + 0x11c], eax
mov dword [edi + 0x120], ecx
jle 0x40494f
cmp ecx, esi
jle 0x40494f
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00410631
mov ebp, eax
cmp ebp, esi
je 0x404728
lea ecx, [esp + 0x40]
call fcn.0040ff79
mov dword [esp + 0x58], esi
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call fcn.00410645
cmp eax, 1
jne 0x404709
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], vtable.CBitmap.0
mov byte [esp + 0x58], al
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x11c]
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call fcn.00410917
cmp eax, 1
jne 0x4046f3
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
call fcn.00406ba0
mov edx, dword [edi + 0x120]
push 0xffffff
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x11c]
push eax
push esi
push esi
lea ecx, [esp + 0x54]
call fcn.0041af9d
cmp dword [edi + 0x1dc], esi
je 0x40469f
mov ebx, dword [edi + 0x1e0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CPen.0
push 0xc8c8c8
push 1
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 2
call fcn.00406b20
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call fcn.00410a52
cmp ebx, 1
mov dword [esp + 0x10], eax
jge 0x404610
lea ebx, [esi + 1]
cmp dword [edi + 0x11c], 0
jle 0x404645
push 0
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x4c]
call fcn.00410365
mov eax, dword [edi + 0x120]
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.0040fd7d
add esi, ebx
cmp esi, dword [edi + 0x11c]
jl 0x404619
xor esi, esi
cmp dword [edi + 0x120], esi
jle 0x40467b
push esi
push 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00410365
mov edx, dword [edi + 0x11c]
push esi
push edx
lea ecx, [esp + 0x48]
call fcn.0040fd7d
add esi, ebx
cmp esi, dword [edi + 0x120]
jl 0x40464f
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
call fcn.00410a52
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CPen.0
call fcn.00401410
push edi
lea esi, [esp + 0x44]
call fcn.00404a60
push 1
push edi
call fcn.00404f30
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x11c]
push 0xcc0020
xor esi, esi
push esi
push esi
push edx
push eax
mov eax, dword [ebp + 4]
push ecx
push esi
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4046e5
xor eax, eax
jmp 0x4046e8
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.004109f6
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.00401410
mov edx, dword [ebp + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xffffffff
call fcn.004106c4
push 0x3f6
mov ecx, edi
xor ebp, ebp
call fcn.00407f83
mov ebx, eax
test ebx, ebx
je 0x4047ec
cmp dword [edi + 0x1f0], ebp
jne 0x4047e3
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x30]
mov eax, dword [edi + 0x11c]
sub eax, esi
mov ebp, dword [esp + 0x3c]
sub ebp, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x11c]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x120]
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x120]
add eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
push 1
mov dword [esp + 0x40], eax
sub eax, edx
push eax
mov eax, dword [esp + 0x38]
sar ecx, 1
mov dword [esp + 0x40], ecx
sub ecx, eax
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0040814e
push 5
mov ecx, ebx
call fcn.0040818e
mov eax, dword [ebx + 0x20]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4047ec
push 0
mov ecx, ebx
call fcn.0040818e
push 0x3f4
mov ecx, edi
call fcn.00407f83
mov dword [esp + 0x14], eax
test eax, eax
je 0x404894
cmp dword [edi + 0x1f0], 0
jne 0x40488b
mov eax, dword [edi + 0x11c]
sub eax, esi
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [edi + 0x11c]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x120]
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x120]
add eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar ecx, 1
sar eax, 1
sub ecx, esi
push 1
sar ebx, 1
sub ebx, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
sub eax, edx
push eax
sub ecx, ebx
push ecx
push edx
mov dword [esp + 0x40], ebx
push ebx
mov ebx, dword [esp + 0x28]
mov ecx, ebx
call fcn.0040814e
push 5
mov ecx, ebx
call fcn.0040818e
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x404894
push 0
mov ecx, eax
call fcn.0040818e
push 0x3f7
mov ecx, edi
call fcn.00407f83
mov dword [esp + 0x14], eax
test eax, eax
je 0x40494f
cmp dword [edi + 0x1f0], 0
jne 0x404946
mov eax, dword [edi + 0x11c]
sub eax, esi
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [edi + 0x11c]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x120]
sub eax, ebp
cdq
sub eax, edx
sar ecx, 1
add ecx, esi
sar ebx, 1
add ebx, esi
mov esi, eax
mov eax, dword [edi + 0x120]
add eax, ebp
cdq
sub eax, edx
sar esi, 1
sar eax, 1
push 1
mov dword [esp + 0x40], eax
sub eax, esi
mov dword [esp + 0x3c], ecx
push eax
sub ecx, ebx
push ecx
push esi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x24]
push ebx
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040814e
push 5
mov ecx, esi
call fcn.0040818e
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push 0
mov ecx, eax
call fcn.0040818e
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret