Function at 0x41a7a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov ebx, ecx
push edi
push edi
push 0x406
push dword [ebx + 0x20]
call esi
push edi
push 0x12c
push 0x160
push eax
call esi
push edi
push edi
push 0x406
push dword [ebx + 0x20]
call esi
push edi
push edi
push 0x14b
push eax
call esi
cmp dword [ebx + 0x3c], edi
jne 0x41a81a
lea eax, [ebx + 0x40]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebx + 0x3c]
push eax
push 0x11
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebx + 0x44]
push eax
push 0x12
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov al, byte [ebp + 0xb]
and byte [ebp - 0x34], 0
mov byte [ebp - 0x3c], al
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3b], al
call fcn.0041b5c6
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 0x40]
push dword [0x4bdb84]
call fcn.0041a6b4
push dword [ebx + 0x3c]
push dword [ebx + 0x40]
call fcn.0048d826
pop ecx
lea edx, [ebp - 0x68]
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x4bdb84]
push edx
push 0x4ab2c8
push edi
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x41a88c
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 0x68]
call fcn.0041a6b4
mov eax, dword [ebp - 0x30]
push dword [ebp + 8]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], edi
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
call fcn.0048936e
pop ecx
cmp eax, edi
mov ecx, dword [0x4af550]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ecx
jne 0x41a8e1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
push eax
call fcn.0048925c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403a8c
lea ecx, [ebp - 0x14]
call fcn.004038fb
jmp 0x41aa31
cmp dword [ebp - 0x14], edi
jle 0x41aa31
mov eax, dword [ebp - 0x2c]
push 6
pop ecx
lea edi, [ebp - 0x80]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x80]
push esi
push dword [ebp + 8]
call fcn.00489587
push dword [ebp + 8]
mov edi, eax
push dword [ebp - 0x74]
push 0
call fcn.00489b53
add esp, 0x14
cmp al, 1
jne 0x41a93f
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0048925c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403a8c
lea ecx, [ebp - 0x24]
jmp 0x41aa0d
push edi
push dword [ebp - 0x74]
call fcn.00489b2a
pop ecx
cmp al, 1
pop ecx
jne 0x41aa12
mov eax, dword [0x4af550]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
inc esi
inc eax
mov dword [ebp - 0x20], esi
cmp esi, eax
jge 0x41aa0a
push esi
push dword [ebp + 8]
call fcn.004896b7
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41aa02
push 0x8000
lea eax, [ebp - 0x1c]
push 0
push eax
push esi
call fcn.004894a0
xor eax, eax
lea edi, [ebp - 0x90]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
push 0
push esi
mov dword [ebp - 0x98], eax
call fcn.00489587
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
add esp, 0x18
mov dword [ebp - 0x8c], esi
mov ecx, dword [eax]
mov dword [ebp - 0x88], eax
push eax
mov dword [ebp - 0x94], 1
call dword [ecx + 4]
push 6
lea eax, [ebp - 0x5c]
pop ecx
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x5c]
push eax
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x44], 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041b19a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
mov esi, dword [ebp - 0x20]
jmp 0x41a95a
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x2c]
call fcn.0041b64f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jl 0x41a8ea
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.004038fb
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 0xc], eax
mov ecx, dword [ecx]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ecx
jle 0x41aa91
mov eax, dword [ebp - 0x14]
push 6
pop ecx
lea edi, [ebp - 0x80]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x80]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 0x74]
call fcn.0041ad0d
cmp dword [ebp - 0x7c], 0
je 0x41aa76
inc eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.0041b64f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x41aa4e
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.0041ad0d
cmp dword [ebp - 8], 0xffffffff
je 0x41ab96
cmp dword [ebx + 0x28], edi
je 0x41ab96
mov eax, dword [0x4af550]
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0048938d
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00489a02
push eax
lea ecx, [ebp - 4]
call fcn.00403a8c
lea ecx, [ebp - 0xc]
call fcn.004038fb
mov eax, dword [0x4bdb84]
cmp eax, edi
je 0x41aafe
mov ecx, dword [eax]
lea edx, [ebp - 0x1a8]
push edx
push 0x4000
push dword [ebp + 8]
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 4]
push edi
push eax
lea esi, [ebp - 0x1a8]
sub esp, 0x108
push 0x42
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0048d88e
add esp, 0x110
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp - 8]
push 0x150
push dword [ebx + 0x20]
call esi
push 9
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push 1
rep stosd dword es:[edi], eax
or dword [ebp - 0x60], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], 0x27
call fcn.00489b9c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call fcn.00489b9c
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0x40c
push dword [ebx + 0x20]
call esi
lea ecx, [ebp - 0x28]
call fcn.004893ad
lea ecx, [ebp - 4]
call fcn.004038fb
xor edi, edi
push edi
push edi
push 0x406
push dword [ebx + 0x20]
call esi
push edi
push edi
push 0x146
push eax
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
jle 0x41acfc
push edi
push dword [ebp - 8]
push 0x150
push dword [ebx + 0x20]
call esi
mov dword [ebp - 0x24], eax
mov ecx, eax
push dword [ebp + 8]
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
push eax
push edi
call fcn.00489b53
add esp, 0xc
test al, al
je 0x41abf9
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x41abba
jmp 0x41acfc
mov eax, dword [0x4af550]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
call fcn.0048938d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0048938d
push edi
push dword [ebp - 8]
push 0x14e
push dword [ebx + 0x20]
call esi
mov eax, dword [0x4bdb84]
cmp eax, edi
je 0x41ac43
mov ecx, dword [eax]
lea edx, [ebp - 0x1a8]
push edx
push 0x8000
push dword [ebp + 8]
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 4]
push edi
push eax
lea esi, [ebp - 0x1a8]
sub esp, 0x108
push 0x42
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0048d88e
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
neg eax
sbb eax, eax
and eax, ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0048925c
add esp, 0x118
lea ecx, [ebp - 4]
push eax
call fcn.00403a8c
lea ecx, [ebp + 8]
call fcn.004038fb
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
or dword [ebp - 0x60], 0xffffffff
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x64], 0x27
call fcn.00489b9c
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], eax
call fcn.00489b9c
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 0x54], eax
call fcn.00403c58
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0x40c
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x10]
call fcn.004893ad
lea ecx, [ebp - 0x18]
call fcn.004893ad
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0x3c]
call fcn.0041b13b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4