Function at 0x402910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eb41
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], edx
mov eax, dword [0x444084]
sub esp, 0xc
mov dword [ebp - 0x230], eax
xor edx, edx
mov dword [ebp - 0x220], 0x2265dc7b
mov eax, dword [ebp - 0x220]
call fcn.0040a6f0
add esp, 0xc
test eax, eax
mov eax, str.D:_A__GA___WD__A__GA___AN_S:_ML__NW___ME_
jne 0x40297a
mov eax, str.D:_A__GA___WD__A__GA___AN_
push 0
lea ecx, [ebp - 0x224]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x402bbc
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x402bbc
push str.Globalunchecky_svc
push 1
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0xc
push eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x402bad
cmp ebx, 0xb7
je 0x402ba6
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov esi, eax
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x402bb1
push 0
push 0
push 0
push 0x927c0
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0xdc3cba00
push eax
push esi
mov dword [ebp - 0x234], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x402bb1
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x258], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x402b73
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x402b3d
push str.Uncheckyuclogfile.bin
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041a0d3
add esp, 0xc
test eax, eax
jne 0x402b3d
sub esp, 0xc
xor edx, edx
call fcn.0040a6f0
add esp, 0xc
test eax, eax
mov eax, str.D:_A__GA___WD__A__GA___AN_S:_ML__NW___ME_
jne 0x402ad2
mov eax, str.D:_A__GA___WD__A__GA___AN_
push 0
lea ecx, [ebp - 0x228]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x402b38
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x402b38
push ecx
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0xc
push eax
push ecx
push 4
push 3
push 0xc0000000
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], ebx
push eax
mov ecx, 0x444094
mov dword [ebp - 0x248], 0
call fcn.00409520
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402b3d
call fcn.00409640
push dword [ebp - 0x22c]
mov edx, esi
mov ecx, edi
push dword [ebp - 0x230]
call fcn.00402d70
mov ebx, eax
add esp, 8
mov eax, dword [0x444094]
test eax, eax
je 0x402b7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x444094], 0
jmp 0x402b7c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test edi, edi
je 0x402b8e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x21c]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x402ba6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x402bc2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
jmp 0x402b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret