Function at 0x41b170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8720
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x524ee0]
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 esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x280], esi
call fcn.00444480
mov dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00444440
push 0x4dfc64
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00444690
lea eax, [ebp - 0x258]
push eax
call fcn.00434f40
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 3
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.004443a0
push str.MyDocumentsFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b27e
push dword [ebp - 0x234]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
or ebx, 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, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b2bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00434a40
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 6
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.004443a0
push str.AppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 8
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b33a
push dword [ebp - 0x234]
call fcn.004a831e
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b378
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00434c80
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 9
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.004443a0
push str.LocalAppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xb
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b3f3
push dword [ebp - 0x234]
call fcn.004a831e
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b431
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00434e60
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xc
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.004443a0
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xe
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b4ac
push dword [ebp - 0x234]
call fcn.004a831e
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b4ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00435100
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xf
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x10
call fcn.004443a0
push str.ProgFiles32Folder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x11
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x10
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b565
push dword [ebp - 0x234]
call fcn.004a831e
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b5a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00435310
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0x12
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x13
call fcn.004443a0
push str.ProgFiles64Folder
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x14
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x13
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
jb 0x41b61e
push dword [ebp - 0x234]
call fcn.004a831e
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, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b65c
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.004a9c90
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
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 0x41b6d4
movzx esi, ax
push 0
push esi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x41b702
push esi
push eax
lea ecx, [ebp - 0x25c]
call fcn.004074c0
jmp 0x41b702
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b6e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00409670
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0x16
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x17
call fcn.004443a0
push str.temp
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x18
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x17
call fcn.00444690
cmp dword [ebp - 0x220], 0x10
mov byte [ebp - 4], 0x16
jb 0x41b778
push dword [ebp - 0x234]
call fcn.004a831e
add esp, 4
call fcn.0043f6e0
lea ecx, [ebp - 0x26c]
push eax
call fcn.00444580
push str.is64bitos
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x19
call fcn.00444920
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x16
call fcn.00444690
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b870
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b870
mov ecx, dword [0x526340]
mov esi, 0x12
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
mov dword [ebp - 4], 0
cmp edx, 5
jne 0x41b8a9
lea esi, [edx - 4]
cmp ecx, esi
jle 0x41b8a3
mov eax, ecx
cdq
idiv esi
inc esi
add esi, edx
cmp esi, ecx
jl 0x41b897
mov dword [0x526340], esi
lea ecx, [ebp - 0x254]
call fcn.004465d0
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
mov byte [ebp - 4], 0x1e
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
mov byte [ebp - 4], 0x1f
call fcn.00418800
test al, al
jne 0x41b91c
push 0x28
call fcn.004a7aa0
add esp, 4
mov esi, eax
xor edi, edi
lea esp, [esp]
call fcn.004a96f9
add eax, dword [0x526340]
inc edi
mov dword [esi + edi*4 - 4], eax
cmp edi, 0xa
jl 0x41b8f0
mov eax, dword [esi + 0x24]
push esi
mov dword [0x526340], eax
call fcn.004a98f0
mov esi, dword [ebp - 0x25c]
add esp, 4
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x254]
call fcn.00449500
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x20
jb 0x41b943
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x41b962
xor ecx, ecx
jmp 0x41b97d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x258], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b970
sub ecx, dword [ebp - 0x258]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x284]
push eax
call fcn.004512c0
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x21
cmp edx, edi
je 0x41b9fc
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x41b9e7
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x41b9e7
push edx
call fcn.004047d0
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41b9dc
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x258]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
jmp 0x41b9fc
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00409670
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x20
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ba1f
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 0x41ba3a
push dword [ebp - 0x234]
call fcn.004a831e
add esp, 4
mov edi, dword [ebp - 0x280]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41ba5b
call fcn.00409970
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0x1e
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41ba79
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], 0x4dfc5c
jb 0x41ba9e
push dword [ebp - 0x250]
call fcn.004a831e
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
call fcn.004466d0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 0xffffffff
call fcn.00444690
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.004a8b24
mov esp, ebp
pop ebp
ret