Function at 0x4033d0
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0x108]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
mov ebp, ecx
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ebx, [ebp + 0x54c]
push str._WIN_
mov ecx, ebx
call fcn.00402160
lea ecx, [esp + 0x118]
add ebp, 0x55c
push ecx
mov ecx, ebp
call fcn.00402160
lea edx, [esp + 0x14]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._SYS_
mov ecx, ebx
call fcn.00402160
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00402160
lea ecx, [esp + 0x118]
push 0x5c
push ecx
call fcn.004108a0
mov esi, eax
lea edx, [esp + 0x120]
sub esi, edx
lea eax, [esp + 0x120]
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00410d20
add esp, 0x14
mov ecx, ebx
mov byte [esp + esi + 0x14], 0
push str._SYSDISK_
call fcn.00402160
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call fcn.00402160
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.System32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
push str._SYS32_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00402160
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00402160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov edx, dword [esp + 0x10]
push edx
call fcn.00423a29
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
push str._PRNDRV_
mov ecx, ebx
call fcn.00402160
push esi
mov ecx, ebp
call fcn.00402160
push esi
call fcn.00423a52
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str._INF_
rep movsb byte es:[edi], byte [esi]
mov edi, str.Inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00402160
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00402160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
mov edx, dword [esp + 0x10]
push edx
call fcn.00423a29
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
push 0x43a160
mov ecx, ebx
call fcn.00402160
push esi
mov ecx, ebp
call fcn.00402160
push esi
call fcn.00423a52
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret