Function at 0x10017880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10050386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x100778dc]
push ebx
push esi
push edi
mov dword [esp + 0x14c], eax
call fcn.10026d30
test al, al
je 0x10017b2f
lea ecx, [esp + 0x14]
call fcn.100341e0
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x15c], ebx
je 0x10017b19
lea ecx, [esp + 0x18]
call fcn.100102c0
mov dword [esp + 0x1c], eax
mov ecx, 1
mov byte [eax + 0x11], cl
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x34]
push edx
push ecx
push ebx
mov byte [esp + 0x16c], cl
push ebx
lea ecx, [esp + 0x28]
call fcn.10034200
test eax, eax
jne 0x10017934
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100179d7
cmp dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
jle 0x100179c9
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + esi]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
call fcn.10032d30
mov edx, dword [eax]
cmp edx, dword [esp + 0x1c]
jne 0x100179af
mov edi, dword [ebx + esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.explorer.exe
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jg 0x100179af
sub esi, eax
push str.explorer.exe
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100179af
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call fcn.100111b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc eax
add ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10017942
xor ebx, ebx
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.10034220
mov al, byte [0x1007a448]
test al, al
jne 0x10017a2e
call fcn.10033fc0
cmp edx, dword [0x1007a444]
jb 0x10017a2e
ja 0x100179f7
cmp eax, dword [0x1007a440]
jbe 0x10017a2e
lea eax, [esp + 0xf]
push eax
push ebx
mov byte [esp + 0x17], 0
call fcn.10018080
mov byte [0x1007a448], al
mov al, byte [esp + 0x17]
add esp, 8
test al, al
je 0x10017a2e
call fcn.10033fc0
add eax, 0x36ee80
adc edx, ebx
mov dword [0x1007a440], eax
mov dword [0x1007a444], edx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x10], edi
je 0x10017a8a
mov edi, edi
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10032d30
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
jne 0x10017a7a
call fcn.1003a350
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.10010e20
jmp 0x10017a7f
call fcn.1003a350
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp edi, eax
jne 0x10017a40
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x10017ae4
mov ebx, dword [esi + 4]
lea edi, [eax + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.10032d30
cmp dword [eax], ebx
jne 0x10017ad1
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.100111b0
mov ecx, dword [edi]
push ecx
call fcn.10017500
add esp, 4
lea ecx, [esp + 0x10]
call fcn.1003a350
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jne 0x10017a98
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 0
call fcn.100113f0
mov eax, dword [esp + 0x1c]
push eax
call fcn.1004119d
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x15c], 0xffffffff
call fcn.100018a0
jmp 0x10017b88
call fcn.10026ca0
test al, al
mov al, byte [ebp + 8]
je 0x10017b7a
test al, al
je 0x10017b88
push 0x104
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.explorer.exe
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.1001d2b0
push 0
call fcn.10017500
add esp, 0xc
jmp 0x10017b88
test al, al
je 0x10017b88
push 0
call fcn.10017500
add esp, 4
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x14c]
call fcn.1004189e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret