Function at 0x409670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eea5
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x24
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x278], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.00403af0
push 0x25
push str.System32DriverStoreFileRepository_
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.004046e0
xorps xmm0, xmm0
lea ecx, [ebp - 0x248]
movdqu xmmword [ebp - 0x248], xmm0
movdqu xmmword [ebp - 0x238], xmm0
call fcn.00404910
push 1
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x274], esp
push str..inf
call fcn.00403af0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004038d0
add esp, 4
lea ecx, [ebp - 0x248]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00404ad0
mov esi, dword [ebp - 0x248]
cmp esi, dword [ebp - 0x244]
jne 0x409771
mov edi, 1
jmp 0x409b78
mov edi, dword [esi]
sub edi, 0x10
mov dword [ebp - 0x26c], 0
push ecx
mov dword [ebp - 0x270], esp
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4097aa
cmp ecx, dword [edi]
jne 0x4097aa
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4097f4
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x274], edx
test edx, edx
je 0x409bec
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00532fa6
mov edi, dword [ebp - 0x274]
add esp, 0x10
mov edx, dword [ebp - 0x270]
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x26c]
mov dword [edx], eax
call fcn.00404820
mov ecx, dword [ebp - 0x26c]
add esp, 4
inc ecx
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x220], 0
push 0
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov dword [ebp - 0x270], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab76
mov ecx, dword [ebp - 0x270]
add esp, 4
add ecx, ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.00535230
add esp, 0xc
push dword [ebp - 0x270]
push edi
push dword [ebp - 0x26c]
push dword [ebp - 0x274]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [ebp - 0x220]
call fcn.00403af0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x220]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409bf1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4098ca
push edi
lea ecx, [ebp - 0x220]
call fcn.00402260
mov eax, dword [ebp - 0x220]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00534aac
mov eax, dword [ebp - 0x220]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x409bf1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x220]
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409bf1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x409920
push edi
lea ecx, [ebp + 8]
call fcn.00402260
mov eax, dword [ebp + 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00534aac
mov eax, dword [ebp + 8]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x409bf1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edi*2], cx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x409b31
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jl 0x409b31
push ecx
push eax
call fcn.005335cd
add esp, 8
test eax, eax
je 0x409b31
sub eax, dword [ebp - 0x220]
sar eax, 1
cmp eax, 0xffffffff
je 0x409b31
mov dword [ebp - 0x224], 0
mov edi, dword [esi]
sub edi, 0x10
push ecx
mov dword [ebp - 0x26c], esp
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4099bc
cmp ecx, dword [edi]
jne 0x4099bc
mov eax, 1
lock xadd dword [edx], eax
jmp 0x409a06
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x270], edx
test edx, edx
je 0x409bec
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00532fa6
mov edi, dword [ebp - 0x270]
add esp, 0x10
mov ecx, dword [ebp - 0x26c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405960
mov byte [ebp - 4], 5
mov ecx, 0x593ed8
mov eax, dword [ebp - 0x224]
mov edx, eax
mov edi, edi
mov di, word [edx]
cmp di, word [ecx]
jne 0x409a56
test di, di
je 0x409a52
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x409a56
add edx, 4
add ecx, 4
test di, di
jne 0x409a30
xor ecx, ecx
jmp 0x409a5b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x409b13
xorps xmm0, xmm0
lea ecx, [ebp - 0x268]
movdqu xmmword [ebp - 0x268], xmm0
movdqu xmmword [ebp - 0x258], xmm0
call fcn.00404910
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x224]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.004038d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00405b90
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push 0x593ed8
call fcn.00403af0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
push 1
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.004038d0
add esp, 4
lea ecx, [ebp - 0x268]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
call fcn.00404ad0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 5
call fcn.00404a00
mov eax, dword [ebp - 0x224]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409b31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x274]
call fcn.0040ab71
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x220]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409b63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x244]
jne 0x409771
mov edi, dword [ebp - 0x278]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00404a00
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409bab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409bcf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532f97
mov esp, ebp
pop ebp
ret
call fcn.00402210
push 0x80070057
call fcn.00402310
int3