Function at 0x46abd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0e66
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push str.OperateFile::GetPrinterDriverFolder
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x258], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46aca3
test byte [ecx + 0x1c], 1
je 0x46ac68
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x16
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46aca3
test byte [ecx + 0x1c], 1
je 0x46aca3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x17
call fcn.00405920
add esp, 0x10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x25c]
xor esi, esi
call fcn.00470b20
push 0x5c6aec
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ad01
call fcn.0052ee40
cmp dword [eax + 8], 0xa
ja 0x46ad01
jne 0x46acfa
cmp dword [eax + 0x10], 0x3fab
jae 0x46ad01
xor edi, edi
jmp 0x46adca
lea eax, [ebp - 0x254]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov edi, eax
test edi, edi
jne 0x46ad6d
cmp esi, 0xa
jge 0x46ae00
push str.SPOOLER
lea ecx, [ebp - 0x25c]
inc esi
call fcn.004748a0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov edi, eax
test edi, edi
je 0x46ad25
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0x24c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46adca
test byte [ecx + 0x1c], 1
je 0x46adca
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.004300c0
add esp, 0x14
lea ecx, [ebp - 0x25c]
call fcn.00470bf0
lea ecx, [ebp - 0x250]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x46ae4f
test byte [eax + 0x1c], 2
je 0x46ae4f
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x250]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5cecd4
push esi
mov ecx, 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
mov esi, dword [ebp - 0x258]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x46ad81