Function at 0x100ce29
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x100d3b1
xor edi, edi
inc edi
cmp eax, edi
jne 0x100ce78
push 2
call fcn.0100bd2a
mov ecx, esi
call fcn.0100b732
test eax, eax
je 0x100ce78
push ebx
mov ecx, esi
call fcn.0100bd2a
mov ecx, esi
call fcn.0100b711
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x630]
push edx
mov dword [ebp - 0x630], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x620], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x5c]
add esp, 0x18
mov edi, 0x104
cmp dword [eax - 0xc], ebx
je 0x100cf55
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004a5f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi + 0x5c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01004a5f
lea eax, [ebp - 0x620]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010077a7
cmp dword [ebp - 0x620], ebx
jbe 0x100cf55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100cf44
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100cf6a
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x620]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x620], ebx
call fcn.010077a7
cmp dword [ebp - 0x620], ebx
jne 0x100cfa2
push edi
lea eax, [ebp - 0x414]
push eax
push 0x6a
push dword [0x1011360]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x10030ec
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x62c], eax
call fcn.01007a20
push 0x10030e0
lea ecx, [ebp - 0x634]
call fcn.01007a20
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x624]
call fcn.01007a20
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [ebp - 0x630], ebx
je 0x100d019
push dword [ebp - 0x62c]
push dword [ebp - 0x63c]
call edi
pop ecx
pop ecx
test eax, eax
je 0x100d011
mov eax, dword [ebp - 0x63c]
jmp 0x100d033
cmp dword [ebp - 0x630], ebx
jne 0x100d042
push dword [ebp - 0x62c]
push dword [ebp - 0x634]
call edi
pop ecx
pop ecx
test eax, eax
je 0x100d042
mov eax, dword [ebp - 0x634]
push dword [eax - 0xc]
lea ecx, [ebp - 0x624]
push eax
call fcn.01007931
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x624]
lea eax, [ebp - 0x61c]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x624]
call fcn.01006e1c
mov eax, 0x100321c
cmp dword [ebp - 0x630], ebx
jne 0x100d0b9
mov eax, 0x1003224
push eax
lea ecx, [ebp - 0x62c]
call fcn.01007a20
mov edi, 0x101133c
push edi
lea ecx, [ebp - 0x644]
call fcn.010047db
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x64c]
call fcn.01007a20
push edi
lea ecx, [ebp - 0x638]
call fcn.010047db
mov eax, dword [ebp - 0x630]
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0x6b
push eax
lea ecx, [ebp - 0x638]
call fcn.01007908
push edi
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x620], ebx
call fcn.010047db
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x620]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x638]
push eax
push 0x8802
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.0100c91b
mov edi, dword [ebp - 0x620]
test eax, eax
jne 0x100d31e
push 0x7f02
push dword [0x1011360]
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, esi
mov dword [ebp - 0x650], eax
call fcn.0100b711
push dword [ebp - 0x624]
mov ecx, esi
call fcn.0100b774
cmp edi, ebx
je 0x100d2fb
cmp dword [ebp - 0x628], ebx
je 0x100d2fb
lea eax, [ebp - 0x620]
push eax
push 0x100320c
push ebx
push dword [ebp - 0x624]
mov dword [ebp - 0x620], ebx
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
cmp eax, ebx
mov dword [ebp - 0x648], eax
jge 0x100d291
mov eax, dword [ebp - 0x620]
cmp eax, ebx
je 0x100d1fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x640]
add ecx, 0xfffffff0
call fcn.0100445c
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x628]
cmp eax, ebx
je 0x100d222
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x638]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x64c]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x644]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x62c]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x624]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x634]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x63c]
add ecx, 0xfffffff0
call fcn.0100445c
mov eax, esi
jmp 0x100d3b3
cmp dword [ebp - 0x620], ebx
jne 0x100d2c7
mov ecx, dword [ebp - 0x640]
add ecx, 0xfffffff0
call fcn.0100445c
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x628]
cmp eax, ebx
je 0x100d2bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004003
jmp 0x100d228
mov eax, dword [edi]
push ebx
push dword [esi + 4]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
push edi
call dword [eax + 0x7c]
mov dword [ebp - 0x648], eax
cmp eax, ebx
mov eax, dword [ebp - 0x620]
jl 0x100d1f4
cmp eax, ebx
je 0x100d2fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x5c]
call fcn.01006e1c
push ebx
mov ecx, esi
call fcn.0100bd2a
push dword [ebp - 0x650]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x640]
add ecx, 0xfffffff0
call fcn.0100445c
cmp edi, ebx
je 0x100d33f
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x628]
cmp eax, ebx
je 0x100d34f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x638]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x64c]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x644]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x62c]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x624]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x634]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x63c]
add ecx, 0xfffffff0
call fcn.0100445c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e7c7
leave
ret 0x10