Function at 0x21019960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106350c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.2103e673
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], 0x21066b8c
push 0x104
call fcn.21058728
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
push 0x104
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
call fcn.21058728
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov byte [eax], 0
push 0x104
call fcn.21058728
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov byte [ecx], 0
push 0x104
call fcn.21058728
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
mov byte [edx], 0
push 0x104
call fcn.21058728
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
mov byte [eax], 0
cmp dword [0x2107bdb8], 0
je 0x21019b48
lea ecx, [ebp - 0x10]
push ecx
push 0x104
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [0x21073498]
push ecx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
push eax
push str.2333
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.21010b3d
lea eax, [ebp - 0x10]
push eax
push 0x104
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
push 1
mov eax, dword [0x21073498]
push eax
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
push 0x21072db0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.21010b3d
lea edx, [ebp - 0x10]
push edx
push 0x104
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
push ecx
push 1
mov edx, dword [0x2107349c]
push edx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
je 0x21019b0c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
push ecx
push 0x21072db4
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
push eax
call fcn.21010b3d
lea ecx, [ebp - 0x10]
push ecx
push 0x104
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
push eax
push 1
mov ecx, dword [0x210734a0]
push ecx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
je 0x21019b48
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
push eax
push 0x21072db8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x14]
push edx
call fcn.21010b3d
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret