Function at 0x4569a0
Capabilities:
Check if file exists
Get common file path
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5234a5
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6a0], eax
cmp dword [ebp - 0x6a0], 0x424
je 0x4569e9
jmp 0x4569fd
mov ecx, dword [ebp + 8]
push ecx
call fcn.00456750
add esp, 4
mov dword [ebp - 0x10], eax
jmp 0x456e62
push 0x535d34
mov edx, dword [ebp + 8]
push edx
call fcn.00503ae0
add esp, 8
test eax, eax
jne 0x456e62
push 0x410
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.00500270
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logfile_wmi
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x424]
push eax
push 0x535d5c
call fcn.0044a070
add esp, 8
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456e4e
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x456dd6
push 0x202
push 0
lea eax, [ebp - 0x634]
push eax
call fcn.00500270
add esp, 0xc
mov dword [ebp - 0x658], 0x100
lea ecx, [ebp - 0x658]
push ecx
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.00456780
add esp, 8
mov dword [ebp - 0x428], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 0x535d90
call fcn.0044a070
add esp, 0x14
push 0x535dd4
lea edx, [ebp - 0x424]
push edx
call fcn.00456780
add esp, 8
mov dword [ebp - 0x63c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x63c]
push eax
push 0x535df4
lea ecx, [ebp - 0x424]
push ecx
push 0x535e18
call fcn.0044a070
add esp, 0x14
cmp dword [ebp - 0x428], 0
jne 0x456b66
cmp dword [ebp - 0x63c], 0
jne 0x456b66
mov dword [ebp - 0x6a4], 0
jmp 0x456b70
mov dword [ebp - 0x6a4], 1
mov edx, dword [ebp - 0x6a4]
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x654]
call fcn.0045ce90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x68c]
call fcn.00427f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x654]
push ecx
lea edx, [ebp - 0x68c]
push edx
call fcn.00456840
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68c]
call fcn.004458f0
lea ecx, [ebp - 0x638]
call fcn.004457d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x654]
call fcn.004bfd30
jmp 0x456bf4
lea ecx, [ebp - 0x660]
call fcn.0045cfe0
lea ecx, [ebp - 0x694]
push ecx
lea ecx, [ebp - 0x654]
call fcn.004f0fe0
push eax
lea ecx, [ebp - 0x660]
call fcn.00416b70
movzx edx, al
test edx, edx
je 0x456db3
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x638]
call fcn.00427f80
push 0x535d8c
lea ecx, [ebp - 0x638]
call fcn.0042fdb0
lea ecx, [ebp - 0x660]
call fcn.004f1c90
add eax, 0x2c
push eax
lea ecx, [ebp - 0x638]
call fcn.0042fdb0
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x638]
call fcn.0046ade0
push eax
call fcn.00456780
add esp, 8
push str.Administrators
lea ecx, [ebp - 0x638]
call fcn.0046ade0
push eax
call fcn.00456780
add esp, 8
lea ecx, [ebp - 0x660]
call fcn.004f1c90
mov edx, dword [eax]
and edx, 0x10
je 0x456dae
lea ecx, [ebp - 0x678]
call fcn.0045ce90
mov byte [ebp - 4], 3
lea eax, [ebp - 0x678]
push eax
lea ecx, [ebp - 0x638]
push ecx
call fcn.00456840
add esp, 8
lea ecx, [ebp - 0x67c]
call fcn.004457d0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x684]
push edx
lea ecx, [ebp - 0x678]
call fcn.004bfd30
jmp 0x456cf6
lea ecx, [ebp - 0x684]
call fcn.0045cfe0
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x678]
call fcn.004f0fe0
push eax
lea ecx, [ebp - 0x684]
call fcn.00416b70
movzx ecx, al
test ecx, ecx
je 0x456d90
lea edx, [ebp - 0x638]
push edx
lea ecx, [ebp - 0x67c]
call fcn.00418990
push 0x535e7c
lea ecx, [ebp - 0x67c]
call fcn.0042fdb0
lea ecx, [ebp - 0x660]
call fcn.004f1c90
add eax, 0x2c
push eax
lea ecx, [ebp - 0x67c]
call fcn.0042fdb0
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x67c]
call fcn.0046ade0
push eax
call fcn.00456780
add esp, 8
push 0x535e80
lea ecx, [ebp - 0x67c]
call fcn.0046ade0
push eax
call fcn.00456780
add esp, 8
jmp 0x456ceb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x67c]
call fcn.004458f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x678]
call fcn.0045cf00
jmp 0x456be9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.0045cf00
jmp 0x456e4c
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x688]
call fcn.00427f00
mov dword [ebp - 4], 5
push str..bak
lea ecx, [ebp - 0x688]
call fcn.0042fdb0
lea ecx, [ebp - 0x688]
call fcn.0046ade0
push eax
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 0x535eac
call fcn.0044a070
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.004458f0
jmp 0x456e62
lea edx, [ebp - 0x424]
push edx
push 0x535edc
call fcn.0044a070
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret