Function at 0x41b390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7192
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x175bc
call fcn.004a9180
mov eax, dword [0x51fee0]
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 edx, dword [0x521340]
mov ebx, dword [ebp + 8]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x175c8], ebx
cmp edx, 2
jne 0x41b45e
xor eax, eax
push 0x17346
push eax
mov word [ebp - 0x17564], ax
lea eax, [ebp - 0x17562]
push eax
call fcn.004a8550
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
test edi, edi
je 0x41b43a
test edx, edx
je 0x41b43a
lea eax, [esi + edx]
lea ecx, [ebp - 0x17564]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x17718]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0xda
jl 0x41b412
add esi, 0xda
inc edi
cmp esi, 0xb9a4
jl 0x41b410
movsx eax, word [ebp - 0x21e]
mov dword [0x521340], eax
push 0
lea ecx, [ebp - 0x175c4]
call fcn.00443cd0
mov dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 1
call fcn.00443c90
push 0x4da4ec
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 2
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 1
call fcn.00443ee0
lea eax, [ebp - 0x175a0]
push eax
call fcn.00433ac0
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 3
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 4
call fcn.00443bf0
push str.MyDocumentsFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 5
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 4
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b532
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b573
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push eax
call fcn.00433630
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 6
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 7
call fcn.00443bf0
push str.AppDataFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 8
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 7
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b5ee
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b62c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push eax
call fcn.00433830
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 9
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0xa
call fcn.00443bf0
push str.LocalAppDataFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0xb
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0xa
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b6a7
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b6e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push eax
call fcn.004339e0
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0xd
call fcn.00443bf0
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0xe
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0xd
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b760
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b79e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push eax
call fcn.00433c80
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x10
call fcn.00443bf0
push str.ProgFiles32Folder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x11
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x10
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b819
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b857
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push eax
call fcn.00433e20
add esp, 4
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0x12
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x13
call fcn.00443bf0
push str.ProgFiles64Folder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x14
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x13
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41b8d2
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b910
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.004a8550
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x175a4], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x41b988
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x41b9b3
push esi
push eax
lea ecx, [ebp - 0x175a4]
call fcn.004075c0
jmp 0x41b9b3
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b991
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x175a4]
call fcn.004097a0
lea eax, [ebp - 0x175a4]
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0x16
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x17
call fcn.00443bf0
push str.temp
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x18
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x17
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
mov byte [ebp - 4], 0x16
jb 0x41ba29
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
call fcn.0043eea0
lea ecx, [ebp - 0x175b4]
push eax
call fcn.00443dd0
push str.is64bitos
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x19
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x16
call fcn.00443ee0
lea eax, [ebp - 0x175a0]
push 0x27
push eax
call fcn.00434010
add esp, 8
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x1b
call fcn.00443bf0
push str.PicturesFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x1c
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x1b
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41bae8
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 0x16
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bb26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x175a0]
push 0
push eax
call fcn.00434010
add esp, 8
push eax
lea eax, [ebp - 0x1757c]
push eax
mov byte [ebp - 4], 0x1d
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x1e
call fcn.00443bf0
push str.DesktopFolder
lea ecx, [ebp - 0x175c4]
mov byte [ebp - 4], 0x1f
call fcn.00444170
lea ecx, [ebp - 0x175b4]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x175b4]
mov byte [ebp - 4], 0x1e
call fcn.00443ee0
cmp dword [ebp - 0x17568], 0x10
jb 0x41bba3
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x175a0]
add edx, 0xfffffff0
mov dword [ebp - 0x17568], 0xf
mov dword [ebp - 0x1756c], 0
mov byte [ebp - 0x1757c], 0
mov byte [ebp - 4], 0x16
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bbe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x175a4]
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 0x41bc97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41bc97
lea ecx, [ebp - 0x1759c]
mov dword [ebp - 4], 0
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x24
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x175a4], esi
lea eax, [ebp - 0x175c4]
push eax
lea eax, [ebp - 0x1757c]
push eax
lea ecx, [ebp - 0x1759c]
mov byte [ebp - 4], 0x25
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x26
jb 0x41bcee
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x41bd0d
xor ecx, ecx
jmp 0x41bd25
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x175a0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bd18
sub ecx, dword [ebp - 0x175a0]
push ecx
push edx
mov ecx, ebx
call fcn.00401460
lea eax, [ebp - 0x175cc]
push eax
call fcn.0044ff60
add esp, 0x1c
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x27
cmp edx, ebx
je 0x41bda4
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x41bd8f
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x41bd8f
push edx
call fcn.00404880
add esp, 4
mov dword [ebp - 0x175a0], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41bd84
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x175a0]
lea esi, [eax + 0x10]
mov dword [ebp - 0x175a4], esi
jmp 0x41bda4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x175a4]
call fcn.004097a0
mov esi, dword [ebp - 0x175a4]
mov edx, dword [ebp - 0x175cc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x26
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bdc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x17568], 0x10
mov byte [ebp - 4], 0x25
jb 0x41bde2
push dword [ebp - 0x1757c]
call fcn.004a6c2e
add esp, 4
mov ebx, dword [ebp - 0x175c8]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41be03
call fcn.0040c350
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x24
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41be21
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x17584], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x1759c], 0x4da4e4
jb 0x41be46
push dword [ebp - 0x17598]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x1759c]
mov dword [ebp - 0x17584], 0xf
mov dword [ebp - 0x17588], 0
mov byte [ebp - 0x17598], 0
call fcn.00446040
lea ecx, [ebp - 0x175c4]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
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.004a7434
mov esp, ebp
pop ebp
ret