Function at 0x40ac80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x654
push ebp
push edi
lea eax, [esp + 0x148]
mov ebp, ecx
push 0x104
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x24c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x24c]
lea eax, [esp + 0x350]
push edx
push str._sexplorer.exe
push 0x104
push eax
call fcn.00407080
add esp, 0x10
lea ecx, [esp + 0x148]
lea edx, [esp + 0x454]
push ecx
push str._s_rpcss.dll
push 0x104
push edx
call fcn.00407080
add esp, 0x10
lea eax, [esp + 0x148]
lea ecx, [esp + 0x558]
push eax
push str._s_spoolsv.exe
push 0x104
push ecx
call fcn.00407080
mov eax, dword [ebp + 0x418]
mov dword [esp + 0x14c], 0
mov dword [esp + 0x144], 2
mov dword [esp + 0x154], 1
mov edi, dword [eax]
add esp, 0x10
cmp edi, eax
mov dword [esp + 8], edi
je 0x40ae9e
push ebx
push esi
jmp 0x40ad57
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x358]
lea esi, [edi + 0xc]
push edx
push esi
call ebx
test eax, eax
je 0x40ad89
lea eax, [esp + 0x45c]
push eax
push esi
call ebx
test eax, eax
je 0x40ad89
mov ecx, dword [edi]
mov dword [esp + 0x10], ecx
jmp 0x40ae8a
mov edx, esi
lea ecx, [esp + 0x18]
mov ebx, 0x104
lea eax, [esp + 0x18]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40ada9
mov byte [eax], cl
inc eax
dec ebx
jne 0x40ad9a
jmp 0x40adad
test ebx, ebx
jne 0x40adae
dec eax
lea edx, [esp + 0x18]
mov ecx, 0x480390
push edx
mov byte [eax], 0
call fcn.0040ac00
xor edx, edx
push 0x4803a4
div dword [0x480398]
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x480394]
mov ebp, dword [eax + ebx*4]
test ebp, ebp
mov esi, ebp
je 0x40ae00
lea ecx, [esp + 0x18]
lea edx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40aebb
mov esi, dword [esi]
test esi, esi
jne 0x40ade3
push 0x4803e0
mov ecx, 0x4803c4
call fcn.0040d230
test eax, eax
jne 0x40ae1d
mov ecx, 0x4803c4
call fcn.0040d100
lea edi, [eax + 4]
mov ecx, 0x4e
lea esi, [esp + 0x18]
mov dword [eax], 0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x13c], 0
mov dword [eax], ebp
mov ecx, dword [0x480394]
push 0x4803a4
mov dword [ecx + ebx*4], eax
mov ecx, dword [0x48039c]
inc ecx
mov dword [0x48039c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [edx], esi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
call fcn.0043fa08
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], esi
mov ebp, eax
dec dword [eax + 0x41c]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x418]
cmp edx, eax
jne 0x40ad53
pop esi
pop ebx
mov eax, dword [0x48039c]
pop edi
test eax, eax
pop ebp
je 0x40af19
call fcn.0043c540
test eax, eax
je 0x40aec8
xor eax, eax
add esp, 0x654
ret
push 0x4803a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40ae62
push 0x480390
call fcn.0043ca10
add esp, 4
test eax, eax
push 0x480390
je 0x40aeef
call fcn.0043e240
add esp, 4
xor eax, eax
add esp, 0x654
ret
call fcn.0043d510
add esp, 4
test eax, eax
push 0x480390
je 0x40af11
call fcn.0043e240
add esp, 4
xor eax, eax
add esp, 0x654
ret
call fcn.0043e240
add esp, 4
mov eax, 1
add esp, 0x654
ret