Function at 0x10008aac
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10025e92
call fcn.100252dc
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xcb
push dword [0x100359b8]
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0x40]
call fcn.1000e780
push 0xcc
push dword [0x100359b8]
lea ecx, [edi + 0x54]
call fcn.1000e780
push 0xcd
push dword [0x100359b8]
lea ecx, [edi + 0x68]
call fcn.1000e780
push 0xce
push dword [0x100359b8]
lea ecx, [edi + 0x7c]
call fcn.1000e780
push 0xcf
push dword [0x100359b8]
lea ecx, [edi + 0x90]
call fcn.1000e780
push 0xd0
push dword [0x100359b8]
lea ecx, [edi + 0xa4]
call fcn.1000e780
push 0xd3
push dword [0x100359b8]
lea ecx, [edi + 0xb8]
call fcn.1000e780
push 0xd4
push dword [0x100359b8]
lea ecx, [edi + 0xcc]
call fcn.1000e780
lea edx, [edi + 0x10c]
call fcn.1000c86f
push 0x1002f2f0
mov esi, 0x100364fc
mov byte [edi + 0xe2], 1
xor ebx, ebx
push esi
mov byte [edi + 0xe5], bl
call fcn.100097c4
pop ecx
pop ecx
lea ecx, [edi + 0x14]
call fcn.10006ab5
push 0x1000
lea ecx, [edi + 0x14]
call fcn.10006c7c
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10008bc9
push ebx
push 0xf
push 1
mov ecx, 0x100364d0
call fcn.10009398
push ecx
lea ecx, [edi + 0x14]
call fcn.1000b261
lea ecx, [edi + 0x14]
call fcn.1000aa83
lea ecx, [edi + 0x14]
call fcn.1000a954
push dword [edi + 0x14]
push str.GetModuleFolder____s
push esi
call fcn.100097c4
push str.GetSystemDirectory
push esi
call fcn.100097c4
add esp, 0x14
lea ecx, [edi + 0x18]
call fcn.10006ab5
push 0x1000
lea ecx, [edi + 0x18]
call fcn.10006c7c
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10008c32
push ebx
push 0x11
push 1
mov ecx, 0x100364d0
call fcn.10009398
push ecx
lea ecx, [edi + 0x18]
call fcn.1000b261
lea ecx, [edi + 0x18]
call fcn.1000a954
push dword [edi + 0x18]
push str.GetSystemDirectory____s
push esi
call fcn.100097c4
mov edx, dword [0x100364f4]
lea ecx, [edi + 0x1c]
add esp, 0xc
call fcn.1000bd77
mov dword [ebp - 4], ebx
lea ecx, [edi + 0x20]
mov edx, dword [0x100364f8]
call fcn.1000bd77
or dword [ebp - 4], 0xffffffff
jmp 0x10008cb0
push str.CGetPrintProcessorDirectoryW
push esi
call fcn.100097c4
pop ecx
pop ecx
lea ecx, [edi + 0x24]
call fcn.10006ab5
push 0x1000
lea ecx, [edi + 0x24]
call fcn.10006c7c
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WINSPOOL.DRV_GetPrintProcessorDirectoryW]
test eax, eax
jne 0x10008cf9
push ebx
push 0x13
push 1
mov ecx, 0x100364d0
call fcn.10009398
push ecx
lea ecx, [edi + 0x24]
call fcn.1000b261
lea ecx, [edi + 0x24]
call fcn.1000a954
push dword [edi + 0x24]
push str.GetPrintProcessorDirectory____s
push esi
call fcn.100097c4
mov esi, dword [0x100364d0]
lea edx, [edi + 0x30]
add esp, 0xc
mov dword [0x100364d0], 1
push 9
pop ecx
call fcn.1000c199
push 0x19
lea edx, [edi + 0x28]
pop ecx
call fcn.1000c199
push 0x17
lea edx, [edi + 0x2c]
pop ecx
call fcn.1000c199
mov dword [0x100364d0], esi
lea edx, [edi + 0x28]
mov eax, dword [edx]
cmp dword [eax - 0xc], ebx
jne 0x10008d64
push 0x10
pop ecx
call fcn.1000c199
lea edx, [edi + 0x2c]
mov eax, dword [edx]
cmp dword [eax - 0xc], ebx
jne 0x10008d76
push 2
pop ecx
call fcn.1000c199
mov ecx, dword [edi + 0x11c]
call fcn.1000c20f
mov ecx, edi
call fcn.10008f24
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret