Function at 0x104de7a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x1004c50
push 0x17
xor ebx, ebx
push ebx
push 0x1004f24
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 4]
jge 0x104deba
cmp eax, ebx
je 0x104deb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x104e25b
cmp eax, ebx
jne 0x104dec8
mov eax, 0x80004003
jmp 0x104e25b
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jge 0x104dedc
mov eax, dword [ebp - 4]
jmp 0x104dea9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104def6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
cmp esi, ebx
jl 0x104ded7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104df10
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x58]
mov esi, eax
cmp esi, ebx
jl 0x104ded7
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104df2a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x48]
mov esi, eax
cmp esi, ebx
jl 0x104ded7
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
push edi
cmp dword [eax - 8], ebx
je 0x104e005
push 1
push 0x7f02
push 1
lea ecx, [ebp - 0x1c]
call fcn.0101dd6a
push dword [esi]
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
cmp esi, ebx
je 0x104dfa3
lea eax, [ebp + 0x1c]
push eax
push esi
push ebx
push ebx
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
push esi
mov edi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp edi, ebx
jge 0x104df9e
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x104df82
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0101d5c1
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104df97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x104e25a
cmp dword [ebp + 0x1c], ebx
jne 0x104dfb0
lea ecx, [ebp - 0x1c]
call fcn.0101d5c1
jmp 0x104e26e
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jge 0x104dfc7
mov eax, dword [ebp + 0x1c]
jmp 0x104dfdc
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0x1c]
jge 0x104dff3
cmp eax, ebx
je 0x104dfe6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0101d5c1
jmp 0x104e29c
cmp eax, ebx
je 0x104dffd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0101d5c1
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x104e104
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.010103e4
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax - 8]
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x14], eax
call fcn.01007539
xor esi, esi
cmp dword [ebp + 0x14], ebx
mov edi, eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x10], ebx
jle 0x104e0f4
mov eax, dword [ebp + 0x14]
cmp esi, eax
jge 0x104e0b3
cmp word [edi + esi*2], 0x7c
je 0x104e05f
inc esi
cmp esi, eax
jl 0x104e051
jmp 0x104e074
xor ecx, ecx
mov word [edi + esi*2], cx
mov ecx, dword [ebp + 0x28]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 1]
mov dword [ebp + 0x10], ecx
cmp esi, eax
jge 0x104e0b3
cmp word [edi + esi*2], 0x7c
je 0x104e086
inc esi
cmp esi, eax
jl 0x104e078
jmp 0x104e09b
xor ecx, ecx
mov word [edi + esi*2], cx
mov ecx, dword [ebp + 0x10]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 1]
mov dword [ebp + 0x28], ecx
cmp esi, eax
jge 0x104e0b3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0104cc50
cmp word [edi + esi*2 + 2], 0x7c
jne 0x104e04a
cmp dword [ebp - 0x18], ebx
je 0x104e0f4
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x104e0df
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jge 0x104e0f4
lea ecx, [ebp + 0x1c]
call fcn.010061d0
lea ecx, [ebp - 0x1c]
call fcn.0104b08e
jmp 0x104e29c
lea ecx, [ebp + 0x1c]
call fcn.010061d0
lea ecx, [ebp - 0x1c]
call fcn.0104b08e
lea eax, [ebp - 8]
push eax
push 0xe
push dword [ebp + 0x2c]
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x104e159
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x1c], ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x104e143
cmp dword [ebp + 0x1c], ebx
je 0x104e143
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x54]
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x104e159
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [ebp + 0x18], eax
cmp eax, ebx
jne 0x104e24a
mov eax, dword [ebp - 4]
lea edx, [ebp + 0x2c]
push edx
mov dword [ebp + 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0x2c]
jl 0x104e292
cmp eax, ebx
je 0x104e26e
lea edx, [ebp + 0x10]
push edx
mov dword [ebp + 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x104e28f
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x104e23d
mov eax, dword [ebp + 0x2c]
lea edx, [ebp + 0x1c]
push edx
push edi
mov dword [ebp + 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0x1c]
jl 0x104e285
cmp eax, ebx
je 0x104e261
lea edx, [ebp + 0x14]
push edx
push 0x80028000
mov dword [ebp + 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jl 0x104e282
cmp dword [ebp + 0x14], ebx
je 0x104e226
push dword [ebp + 0x14]
lea ecx, [ebp + 0x28]
call fcn.01010421
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x28]
push eax
call fcn.010143f9
lea ecx, [ebp + 0x28]
call fcn.010061d0
push dword [ebp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x104e233
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x104e1b7
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x104e24a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104e257
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x28
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x104e26e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104e27b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x104e25a
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x104e28f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x104e29c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x104e2a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x104e25a