Function at 0x4188ad
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 + 0x28], edi
jne 0x41891e
lea eax, [ebx + 0x2c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebx + 0x28]
push eax
push 0x11
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebx + 0x30]
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.004196d4
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 0x2c]
push dword [0x48d508]
call fcn.004187ae
push dword [ebx + 0x28]
push dword [ebx + 0x2c]
call fcn.00462591
pop ecx
lea edx, [ebp - 0x68]
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x48d508]
push edx
push 0x47ce94
push edi
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x418990
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x68]
call fcn.004187ae
mov eax, dword [ebp - 0x30]
push dword [ebp + 8]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], edi
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
call fcn.0045e6d1
pop ecx
cmp eax, edi
mov ecx, dword [0x481530]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], ecx
jne 0x4189e5
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], edi
push eax
call fcn.0045e648
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401521
lea ecx, [ebp - 0x10]
call fcn.0040139b
jmp 0x418b38
cmp dword [ebp - 0x10], edi
jle 0x418b38
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 edi, dword [ebp - 0x80]
push edi
push dword [ebp + 8]
call fcn.0045e8ef
push dword [ebp + 8]
mov esi, eax
push dword [ebp - 0x74]
push 0
call fcn.0045edd6
add esp, 0x14
cmp al, 1
jne 0x418a43
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045e648
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401521
lea ecx, [ebp - 0x24]
jmp 0x418b14
push esi
push dword [ebp - 0x74]
call fcn.0045eda5
pop ecx
cmp al, 1
pop ecx
jne 0x418b19
mov eax, dword [0x481530]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
inc edi
inc eax
mov dword [ebp - 0xc], edi
cmp edi, eax
jge 0x418b11
push edi
push dword [ebp + 8]
call fcn.0045ea09
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x418a5e
push 0x8000
lea eax, [ebp - 0x18]
push 0
push eax
push esi
call fcn.0045e808
push 0x10
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0046d310
and dword [ebp - 0x94], 0
push 0
push esi
mov dword [ebp - 0x98], edi
call fcn.0045e8ef
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
add esp, 0x24
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.004192a8
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edi, ecx
mov dword [eax + 0x24], ecx
jmp 0x418a5e
lea ecx, [ebp - 0x1c]
call fcn.0040139b
lea ecx, [ebp - 0x2c]
call fcn.0041975d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x4189ee
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
lea ecx, [ebp - 0x18]
call fcn.0040139b
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ecx]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
jle 0x418b98
mov eax, dword [ebp - 0x10]
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.00418e1b
cmp dword [ebp - 0x7c], 0
je 0x418b7d
inc eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
call fcn.0041975d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jl 0x418b55
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push dword [ebx + 0x2c]
mov ecx, ebx
call fcn.00418e1b
cmp dword [ebp - 8], 0xffffffff
je 0x418c9f
cmp dword [ebx + 0x34], edi
je 0x418c9f
mov eax, dword [0x481530]
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0045e6f0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
call fcn.0045ec7d
push eax
lea ecx, [ebp - 4]
call fcn.00401521
lea ecx, [ebp - 0x1c]
call fcn.0040139b
mov eax, dword [0x48d508]
cmp eax, edi
je 0x418c05
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.004625f4
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
mov edi, eax
push 0x24
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0046d310
or dword [ebp - 0x60], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], 0x27
push 1
call fcn.0045ee1f
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 4]
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], edi
call fcn.0045ee1f
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.0045e710
lea ecx, [ebp - 4]
call fcn.0040139b
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 - 0x1c], eax
mov dword [ebp - 8], edi
jle 0x418e0a
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.0045edd6
add esp, 0xc
test al, al
je 0x418d02
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jl 0x418cc3
jmp 0x418e0a
mov eax, dword [0x481530]
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.0045e6f0
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0045e6f0
push edi
push dword [ebp - 8]
push 0x14e
push dword [ebx + 0x20]
call esi
mov eax, dword [0x48d508]
cmp eax, edi
je 0x418d4c
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.004625f4
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0045e648
add esp, 0x118
lea ecx, [ebp - 4]
push eax
call fcn.00401521
lea ecx, [ebp + 8]
call fcn.0040139b
xor esi, esi
push 0x24
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0046d310
or dword [ebp - 0x60], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x64], 0x27
push 3
call fcn.0045ee1f
push 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x50], eax
call fcn.0045ee1f
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x54], eax
call fcn.004016d3
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
push esi
push 0x40c
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x20]
call fcn.0045e710
lea ecx, [ebp - 0x14]
call fcn.0045e710
lea ecx, [ebp - 4]
call fcn.0040139b
lea ecx, [ebp - 0x3c]
call fcn.00419249
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4