Function at 0x419ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556fff
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x5d7b20]
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 edi, dword [ebp + 0x10]
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x648], edi
push 0xa
lea ecx, [ebp - 0x6b8]
mov dword [ebp - 4], 0
call fcn.0045900d
mov byte [ebp - 4], 1
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419f62
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x644], eax
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 2
call fcn.004477d0
mov eax, dword [ebp + 0xc]
push 0x3b
lea ecx, [ebp - 0x6b8]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x640], esp
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.00404610
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00419180
mov esi, dword [ebp - 0x6b4]
add esp, 0xc
test esi, esi
jne 0x41a006
lea ecx, [ebp - 0x664]
call fcn.004464e0
test eax, eax
jne 0x41a4b3
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 2
call fcn.00447830
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41a514
mov esi, dword [ebp - 0x640]
push 0xa
lea ecx, [ebp - 0x680]
call fcn.0045900d
push 0xa
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 4
call fcn.0045900d
push 0x208
lea edx, [ebp - 0x220]
push 0
push edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x63c], 0
call fcn.0053e550
add esp, 0xc
lea eax, [ebp - 0x680]
push 0x3d
push eax
mov eax, esi
test esi, esi
je 0x41a3ff
mov ecx, dword [esi]
mov esi, dword [eax + 8]
push ecx
mov dword [ebp - 0x640], ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x630], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x41a095
cmp eax, dword [esi - 0x10]
jne 0x41a095
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41a0cd
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41a404
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0053e916
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00419180
add esp, 0xc
cmp dword [ebp - 0x674], 2
jne 0x41a3c9
mov eax, dword [ebp - 0x67c]
xor esi, esi
cmp eax, esi
je 0x41a3ff
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0x5706a0
push eax
mov dword [ebp - 0x630], edi
call fcn.0053e2bf
add esp, 8
cmp eax, esi
jne 0x41a2c6
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x638]
push edx
push esi
push esi
push 3
push esi
push esi
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x634], esi
call sub.WINSPOOL.DRV_EnumPrinterDriversW
mov eax, dword [ebp - 0x638]
push 0x2049
push str.DevConFunc.cpp
push eax
call fcn.0043e4e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41a409
mov eax, dword [ebp - 0x638]
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x638]
push edx
push eax
push ebx
push 3
push esi
push esi
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
je 0x41a409
cmp dword [ebp - 0x634], esi
jbe 0x41a26a
lea edi, [ebx + 4]
mov ecx, dword [ebp - 0x64c]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41a1bb
inc esi
add edi, 0x28
cmp esi, dword [ebp - 0x634]
jb 0x41a196
jmp 0x41a264
push 0
push 0
push 0
push 0
push 0x101
lea eax, [ebp - 0x62c]
push eax
push 4
lea ecx, [ebp - 0x18]
lea edx, [esi + esi*4]
mov eax, dword [ebx + edx*8 + 0xc]
push ecx
push eax
call fcn.0053e704
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x220]
push 0x104
push edx
call fcn.0053eeab
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.0053e396
lea edx, [ebp - 0x220]
push 0x5c
push edx
call fcn.0053dd9b
add esp, 0x44
test eax, eax
je 0x41a22b
cmp word [eax + 2], 0
je 0x41a244
push 0x56825c
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0053e396
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push str.AllocAndGetCustomDependentFiles_szDriverFolder____s__n
call fcn.00415550
lea edx, [ebp - 0x220]
add esp, 8
mov dword [ebp - 0x63c], edx
mov edi, dword [ebp - 0x630]
push ebx
call fcn.0043e500
add esp, 4
cmp dword [ebp - 0x63c], 0
je 0x41a3c9
push 0x3a
lea eax, [ebp - 0x69c]
push eax
test edi, edi
je 0x41a3ff
mov esi, dword [edi + 8]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x630], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x41a323
cmp eax, dword [esi - 0x10]
jne 0x41a323
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41a35b
cmp edi, esi
je 0x41a3ff
mov eax, dword [edi + 8]
push 0x570628
push eax
call fcn.0053e2bf
add esp, 8
cmp eax, esi
jne 0x41a3c9
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x56825c
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.0053e396
lea edx, [ebp - 0x220]
add esp, 0xc
mov dword [ebp - 0x63c], edx
jmp 0x41a280
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41a404
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0053e916
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00419180
mov esi, dword [ebp - 0x698]
add esp, 0xc
test esi, esi
je 0x41a3c9
mov ecx, dword [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
test esi, esi
je 0x41a3ff
mov eax, dword [eax + 8]
mov esi, dword [esi]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x428]
push ecx
push str.AllocAndGetCustomDependentFiles_szPath____s__n
call fcn.00415550
add esp, 8
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x664]
call fcn.00448140
test esi, esi
jne 0x41a372
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 4
call fcn.0045913b
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], 3
call fcn.0045913b
cmp dword [ebp - 0x640], 0
jne 0x41a000
mov edi, dword [ebp - 0x648]
jmp 0x419fbf
call fcn.00449c8f
call fcn.00404310
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 4
call fcn.0045913b
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], 3
call fcn.0045913b
mov esi, dword [ebp - 0x648]
mov eax, dword [esi]
test eax, eax
je 0x41a442
push eax
call fcn.0043e500
add esp, 4
mov dword [esi], 0
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 2
call fcn.00447830
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 0
call fcn.0045913b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41a556
push 0x207c
lea esi, [eax + eax]
push str.DevConFunc.cpp
push esi
call fcn.0043e4e0
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x41a442
push esi
lea ecx, [ebp - 0x664]
call fcn.004465d0
mov ecx, dword [edi]
push eax
push ecx
call fcn.0053d4c0
add esp, 0xc
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 2
call fcn.00447830
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 0
call fcn.0045913b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0053e1ad
mov esp, ebp
pop ebp
ret