Function at 0x40c090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40f0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x417440]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417440]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1b4]
mov esi, ecx
call dword [0x4174a4]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
je 0x40c142
cmp byte [0x4175e5], 0
jne 0x40c138
lea eax, [esp + 0x8c]
push eax
mov byte [0x4175e5], 1
mov dword [esp + 0x90], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x9c], 2
jne 0x40c138
push 0xe0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x40c131
mov byte [0x4173fe], al
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [0x4173fe]
jmp 0x40c2ea
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x104
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b0], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push str.AdminTester.exe
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push 0x44
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.0040cf04
mov eax, SysReAllocString
add esp, 0xc
push str.AdvAPI32.dll
lea ecx, [esp + 0x1c]
mov word [esp + 0x60], 5
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ac], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c2d4
push str.CreateProcessWithLogonW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x1c]
push edx
mov edi, eax
lea eax, [esp + 0x30]
push eax
push 0x412c78
push 0
push 0
push 0x412ed0
push 0
push 1
lea ecx, [esi + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 0
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [ebp], eax
je 0x40c2b1
mov ecx, dword [esp + 0x1c]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c29d
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x40c260
push 1
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
je 0x40c28c
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esp + 0x1c]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c260
mov eax, dword [esp + 0x1c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp], 0
jne 0x40c2b1
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, 1
sete al
jmp 0x40c2ea
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor al, al
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0040ceac
add esp, 0x19c
ret 4