Function at 0x41a727
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 0x41a798
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.0041b544
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 0x40]
push dword [0x4bec4c]
call fcn.0041a632
push dword [ebx + 0x3c]
push dword [ebx + 0x40]
call fcn.0048ddc9
pop ecx
lea edx, [ebp - 0x68]
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x4bec4c]
push edx
push 0x4ac2d8
push edi
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x41a80a
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.0041a632
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.0048992b
pop ecx
cmp eax, edi
mov ecx, dword [0x4b0550]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ecx
jne 0x41a85f
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
push eax
call fcn.00489819
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403a8c
lea ecx, [ebp - 0x14]
call fcn.004038fb
jmp 0x41a9af
cmp dword [ebp - 0x14], edi
jle 0x41a9af
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.00489b44
push dword [ebp + 8]
mov edi, eax
push dword [ebp - 0x74]
push 0
call fcn.0048a110
add esp, 0x14
cmp al, 1
jne 0x41a8bd
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00489819
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403a8c
lea ecx, [ebp - 0x24]
jmp 0x41a98b
push edi
push dword [ebp - 0x74]
call fcn.0048a0e7
pop ecx
cmp al, 1
pop ecx
jne 0x41a990
mov eax, dword [0x4b0550]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
inc esi
inc eax
mov dword [ebp - 0x20], esi
cmp esi, eax
jge 0x41a988
push esi
push dword [ebp + 8]
call fcn.00489c74
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41a980
push 0x8000
lea eax, [ebp - 0x1c]
push 0
push eax
push esi
call fcn.00489a5d
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.00489b44
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.0041b118
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
mov esi, dword [ebp - 0x20]
jmp 0x41a8d8
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x2c]
call fcn.0041b5cd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jl 0x41a868
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 0x41aa0f
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.0041ac8b
cmp dword [ebp - 0x7c], 0
je 0x41a9f4
inc eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.0041b5cd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x41a9cc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.0041ac8b
cmp dword [ebp - 8], 0xffffffff
je 0x41ab14
cmp dword [ebx + 0x28], edi
je 0x41ab14
mov eax, dword [0x4b0550]
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0048994a
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00489fbf
push eax
lea ecx, [ebp - 4]
call fcn.00403a8c
lea ecx, [ebp - 0xc]
call fcn.004038fb
mov eax, dword [0x4bec4c]
cmp eax, edi
je 0x41aa7c
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.0048de31
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.0048a159
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.0048a159
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.0048996a
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 0x41ac7a
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.0048a110
add esp, 0xc
test al, al
je 0x41ab77
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x41ab38
jmp 0x41ac7a
mov eax, dword [0x4b0550]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
call fcn.0048994a
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0048994a
push edi
push dword [ebp - 8]
push 0x14e
push dword [ebx + 0x20]
call esi
mov eax, dword [0x4bec4c]
cmp eax, edi
je 0x41abc1
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.0048de31
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.00489819
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.0048a159
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], eax
call fcn.0048a159
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.0048996a
lea ecx, [ebp - 0x18]
call fcn.0048996a
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0x3c]
call fcn.0041b0b9
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4