Function at 0x409170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ee1a
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
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
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x22c], 0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00403af0
push 5
push str.inf_
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.004046e0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24c]
movdqu xmmword [ebp - 0x24c], xmm0
movdqu xmmword [ebp - 0x23c], xmm0
call fcn.00404910
push 1
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x250], esp
push 0x5945ac
call fcn.00403af0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x22c]
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004038d0
add esp, 4
lea ecx, [ebp - 0x24c]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00404ad0
mov esi, dword [ebp - 0x24c]
or edi, 0xffffffff
mov dword [ebp - 0x254], esi
cmp esi, dword [ebp - 0x248]
je 0x4095e1
lea ebx, [ebx]
mov edi, dword [esi]
sub edi, 0x10
mov dword [ebp - 0x228], 0
push ecx
mov dword [ebp - 0x220], 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 0x4092a9
cmp ecx, dword [edi]
jne 0x4092a9
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4092f3
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x250], edx
test edx, edx
je 0x409654
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 - 0x250]
add esp, 0x10
mov edx, dword [ebp - 0x220]
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x228]
mov dword [edx], eax
call fcn.00404820
mov ecx, dword [ebp - 0x228]
add esp, 4
inc ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x224], 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 - 0x220], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab76
mov ecx, dword [ebp - 0x220]
add esp, 4
add ecx, ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.00535230
add esp, 0xc
push dword [ebp - 0x220]
push edi
push dword [ebp - 0x228]
push dword [ebp - 0x250]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [ebp - 0x224]
call fcn.00403af0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409659
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4093c9
push edi
lea ecx, [ebp - 0x224]
call fcn.00402260
mov eax, dword [ebp - 0x224]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00534aac
mov eax, dword [ebp - 0x224]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x409659
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409659
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40941f
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 0x409659
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 0x409598
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jl 0x409598
push ecx
push eax
call fcn.005335cd
add esp, 8
test eax, eax
je 0x409598
sub eax, dword [ebp - 0x224]
sar eax, 1
cmp eax, 0xffffffff
je 0x409598
mov edi, dword [esi]
sub edi, 0x10
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 0x4094aa
cmp ecx, dword [edi]
jne 0x4094aa
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4094f4
mov eax, dword [ecx]
push 2
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x220], edx
test edx, edx
je 0x409654
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 - 0x220]
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x228], edi
push 0x2e
push edi
mov byte [ebp - 4], 5
call fcn.00533faa
push 0x5c
push edi
call fcn.00533faa
add esp, 0x10
test eax, eax
jne 0x40951d
or eax, 0xffffffff
jmp 0x409521
sub eax, edi
sar eax, 1
mov ecx, dword [edi - 0xc]
cmp eax, 0xffffffff
je 0x40957a
sub ecx, eax
mov dword [ebp - 0x220], 0
dec ecx
lea eax, [ebp - 0x220]
push ecx
push eax
mov ecx, esi
call fcn.0040aa10
mov esi, dword [ebp - 0x220]
push 0
push 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfW]
add esi, 0xfffffff0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409574
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x254]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409598
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x250]
call fcn.0040ab71
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x224]
add esp, 4
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4095cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
mov dword [ebp - 0x254], esi
cmp esi, dword [ebp - 0x248]
jne 0x409270
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.00404a00
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409613
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409634
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
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