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

Disassembly:
mov eax, 0x4323e8
call fcn.00432208
mov eax, 0x18b8
call fcn.00413700
push ebx
push esi
xor esi, esi
cmp dword [0x4e5c90], 0x5b1
push edi
jne 0x404737
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.00404bc0
push 0x403970
push esi
mov dword [ebp - 4], esi
call fcn.00406e8d
pop ecx
pop ecx
call fcn.00406295
push 0x403974
lea ecx, [ebp - 0x20]
call fcn.00404010
lea ecx, [ebp - 0x20]
call fcn.0040402c
lea ecx, [ebp - 0x20]
call fcn.00404072
lea ecx, [ebp - 0x20]
call fcn.0040408b
push esi
push esi
call fcn.00406dbe
push esi
call fcn.00406d8f
add esp, 0xc
call fcn.0040656c
push esi
call fcn.00406d78
pop ecx
push esi
call fcn.0040720e
mov dword [esp], esi
call fcn.0040426d
fstp st(0)
push esi
call fcn.00406d78
pop ecx
lea eax, [ebp - 0x58]
push eax
call fcn.00404bf3
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 1
call fcn.00404c4b
lea ecx, [ebp - 0xc4]
call fcn.00404c88
lea eax, [ebp - 0x58]
push eax
call fcn.00404c34
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x3c]
call fcn.00404be5
add dword [0x4e5c90], 0x1134b
push dword [0x4e5c90]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e4be0], eax
call fcn.00404571
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 0x404780
inc edi
cmp edi, 0x4f6a4
jl 0x404760
xor edi, edi
cmp dword [0x4e5c90], esi
jbe 0x4047c6
cmp dword [0x4e5c90], 0xa8
mov eax, dword [0x4e5c94]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e4be0]
mov byte [ecx + edi], al
jne 0x4047bd
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 [0x4e5c90]
jb 0x40478a
xor edi, edi
mov eax, dword [0x4e5c90]
add eax, edi
cmp eax, 0xe
jne 0x404814
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 0x403984
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x403998
push 0x4039e8
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 0x4047c8
call fcn.00404467
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x404830
call fcn.00404557
inc edi
cmp edi, 0x6753f
jl 0x404824
push 0x7b
pop edi
cmp dword [0x4e5c90], 0x86
jne 0x404873
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 [0x4e5c90], 0xf
jne 0x404884
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
dec edi
jne 0x40483c
push 0x4039dc
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