Function at 0x41a170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f40
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x280], ebx
call fcn.004179a0
test al, al
jne 0x41a21e
mov esi, dword [0x520340]
test esi, esi
je 0x41a21e
lea ecx, [ecx]
mov ecx, esi
and ecx, 0x80000001
jns 0x41a1cf
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x41a1dc
mov eax, esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x41a1e3
lea esi, [esi*2 + 1]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
mov dword [0x520340], esi
sub ecx, 0
je 0x41a20d
sub ecx, 2
je 0x41a210
dec ecx
je 0x41a211
jmp 0x41a21a
add esi, 2
inc esi
add esi, 2
mov dword [0x520340], esi
test esi, esi
jne 0x41a1c0
push 0
lea ecx, [ebp - 0x27c]
call fcn.00442860
mov dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00442820
push 0x4d968c
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00442a70
lea eax, [ebp - 0x258]
push eax
call fcn.00433fd0
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 3
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.00442780
push str.MyDocumentsFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a2f2
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41a333
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00433af0
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 6
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00442780
push str.AppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 8
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a3ae
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a3ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00433d40
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 9
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.00442780
push str.LocalAppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xb
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a467
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a4a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00433ef0
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xc
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00442780
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xe
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a520
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a55e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00434190
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xf
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x10
call fcn.00442780
push str.ProgFiles32Folder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x11
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x10
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a5d9
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00434330
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0x12
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x13
call fcn.00442780
push str.ProgFiles64Folder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x14
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x13
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
jb 0x41a692
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a6d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x41a748
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x41a773
push esi
push eax
lea ecx, [ebp - 0x25c]
call fcn.00407650
jmp 0x41a773
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a751
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00409950
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0x16
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x17
call fcn.00442780
push str.temp
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x18
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x17
call fcn.00442a70
cmp dword [ebp - 0x220], 0x10
mov byte [ebp - 4], 0x16
jb 0x41a7e9
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
call fcn.0043dad0
lea ecx, [ebp - 0x26c]
push eax
call fcn.00442960
push str.is64bitos
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x19
call fcn.00442d00
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x16
call fcn.00442a70
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a8e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a8e1
mov esi, dword [0x520340]
mov ecx, 0x14
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
mov dword [ebp - 4], 0
lea ebx, [ecx - 0x10]
cmp edx, 0xf
jne 0x41a93a
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
lea ecx, [ebp - 0x254]
call fcn.004449b0
mov byte [ebp - 4], 0x1e
call fcn.00417ae0
test al, al
jne 0x41a98b
mov esi, dword [0x520340]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x7b]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x1f
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x20
jb 0x41a9cc
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x41a9eb
xor ecx, ecx
jmp 0x41a9f9
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a9f0
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x258]
push eax
call fcn.0044ee90
add esp, 0x1c
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x21
call fcn.00402af0
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x20
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41aa44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x220], 0x10
mov byte [ebp - 4], 0x1f
jb 0x41aa5f
push dword [ebp - 0x234]
call fcn.004a5bbe
add esp, 4
mov ebx, dword [ebp - 0x280]
mov esi, dword [ebp - 0x25c]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41aa86
call fcn.0040c2e0
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x1e
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41aaa4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x23c], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x254], 0x4d9684
jb 0x41aac9
push dword [ebp - 0x250]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
call fcn.00444ab0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret