Function at 0x464da0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564791
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x430], esi
mov eax, dword [ebp + 8]
push 0x28
mov dword [ebp - 0x424], eax
call fcn.00529b2d
mov edi, eax
mov byte [ebp - 0x411], 0
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [edi], xmm0
push 0x50
movdqu xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
mov dword [edi + 0xc], 0x200001
mov dword [edi], 0x28
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
jle 0x464e50
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4d
mov dword [ebp - 0x41c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x428], eax
jmp 0x464e7a
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 8], eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x428], 0
push 0
push 0
lea eax, [ebp - 0x434]
push eax
push 0
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x464f48
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x464f3c
push dword [ebp - 0x420]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x464f27
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0xcc0020
push dword [ebp - 0x428]
mov esi, eax
push dword [ebp - 0x41c]
push esi
push dword [edi + 8]
push dword [edi + 4]
push 0
push 0
push dword [ebp - 0x418]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
push esi
push 0
setne byte [ebp - 0x411]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x42c]
push dword [ebp - 0x418]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x430]
push dword [ebp - 0x418]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [ebp - 0x411], 0
jne 0x464f48
push dword [ebp - 0x420]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.005295dd
add esp, 4
cmp byte [ebp - 0x411], 0
je 0x465064
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AgentScr.log
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.0052e020
lea eax, [ebp - 0x410]
push 0x58c254
push eax
call fcn.0052e5ea
mov edi, eax
add esp, 0x14
test edi, edi
je 0x465012
push str.Screen_quality_is
lea ecx, [ebp - 0x418]
call fcn.00441400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x418]
movzx ecx, byte [esi + 0xafc]
push ecx
push str._d_r_n
push eax
call fcn.00475030
mov eax, dword [ebp - 0x418]
push edi
push 1
push dword [eax - 0xc]
push eax
call fcn.0052b6e4
push edi
call fcn.0052c324
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x465012
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esi + 0xafc], 5
jae 0x465022
mov byte [esi + 0xafc], 0x14
cmp byte [esi + 0xafc], 0x64
jbe 0x465032
mov byte [esi + 0xafc], 0x64
movzx eax, byte [esi + 0xafc]
mov ecx, dword [ebp - 0x424]
push eax
call fcn.004fe7c0
mov edi, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x424]
push 0
push edi
call fcn.004fe8f0
test al, al
jne 0x465083
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0xafb], 0
je 0x465108
lea eax, [ebp - 0x410]
push 0x58c254
push eax
call fcn.0052e5ea
mov esi, eax
add esp, 8
test esi, esi
je 0x4650ea
push str.Screen_is_grayscale
lea ecx, [ebp - 0x41c]
call fcn.00441400
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x41c]
push esi
push 1
push dword [ecx - 0xc]
push ecx
call fcn.0052b6e4
push esi
call fcn.0052c324
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00402750
mov ecx, dword [ebp - 0x424]
push 0
push 0
push 0
push 4
call fcn.004fe9c0
mov ecx, dword [ebp - 0x424]
call fcn.004fef40
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
jmp 0x465066