Function at 0x10117840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f9e3
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x1024b600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x264], 1
mov ecx, dword [0x10251fa8]
mov dword [ebp - 0x254], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x26c], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10253758]
cmp eax, dword [ecx + 8]
jg 0x101180b4
push 0x10253728
mov dword [ebp - 0x274], 0x10253728
call fcn.10142685
add esp, 4
test eax, eax
jne 0x101180f6
mov eax, dword [0x10253754]
cmp eax, 0x7fffffff
je 0x101180fd
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
movsx eax, byte [edi]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x264], 1
call fcn.10077470
add esp, 4
test eax, eax
je 0x10117a1a
cmp byte [edi + 1], 0x3a
jne 0x10117a1a
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1011793d
cmp al, 0x2f
je 0x1011793d
xor eax, eax
jmp 0x10117942
mov eax, 1
test eax, eax
je 0x10117a1a
mov ecx, edi
mov dword [ebp - 0x238], 0
xorps xmm0, xmm0
mov dword [ebp - 0x234], 0
movups xmmword [ebp - 0x248], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10117970
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.100035e8
cmp dword [ebp - 0x234], 0xf
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x249]
cmova ecx, dword [ebp - 0x248]
push edx
add eax, ecx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x234], 0xf
lea edx, [ebp - 0x24a]
push edx
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x249], 0x5c
cmova ecx, dword [ebp - 0x248]
push eax
push ecx
mov byte [ebp - 0x24a], 0x2f
call fcn.10117000
cmp dword [ebp - 0x234], 0xf
lea ecx, [ebp - 0x248]
mov esi, dword [ebp - 0x258]
cmova ecx, dword [ebp - 0x248]
push esi
push dword [ebp - 0x254]
push ecx
call fcn.10117030
add esp, 0x1c
lea ecx, [ebp - 0x248]
call fcn.10005247
jmp 0x1011808a
cmp byte [edi], 0x5c
jne 0x10117a50
cmp byte [edi + 1], 0x5c
jne 0x10117a50
cmp byte [edi + 2], 0x3f
jne 0x10117a50
cmp byte [edi + 3], 0x5c
jne 0x10117a50
push esi
push dword [ebp - 0x254]
push edi
call fcn.10117030
push 0x10253728
call fcn.101426aa
add esp, 0x10
jmp 0x10118097
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x290]
mov dword [ebp - 4], 3
push 0x10209f84
push eax
call fcn.1010ba60
add esp, 8
cmp byte [ebp - 0x290], 0
mov byte [ebp - 4], 4
je 0x10117ba3
cmp dword [ebp - 0x278], 7
lea eax, [ebp - 0x28c]
cmova eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1010bc10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10117b4e
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x10117b0b
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117b01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011810a
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x248]
call fcn.10005247
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x230]
cmp edx, 0xf
mov ecx, dword [ebp - 0x220]
cmova eax, esi
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x10117b87
cmp al, 0x2f
jne 0x10117cb9
dec ecx
lea eax, [ebp - 0x230]
cmp edx, 0xf
mov dword [ebp - 0x220], ecx
cmova eax, esi
mov byte [eax + ecx], 0
jmp 0x10117cb9
push 0
push 0
call fcn.101483df
mov edi, eax
add esp, 8
test edi, edi
je 0x10117ca9
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.1010bc10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10117c52
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x10117c0f
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117c05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011810f
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x248]
call fcn.10005247
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x230]
cmp edx, 0xf
mov ecx, dword [ebp - 0x220]
cmova eax, esi
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x10117c87
cmp al, 0x2f
jne 0x10117c9e
dec ecx
lea eax, [ebp - 0x230]
cmp edx, 0xf
mov dword [ebp - 0x220], ecx
cmova eax, esi
mov byte [eax + ecx], 0
push edi
call fcn.1007327e
add esp, 4
jmp 0x10117cb9
push 0x10152764
lea ecx, [ebp - 0x230]
call fcn.100d55a0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.100d5240
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x230]
cmp edx, 0xf
cmova ecx, esi
add ecx, dword [ebp - 0x220]
cmp edx, 0xf
cmova eax, esi
cmp eax, ecx
je 0x10117d0f
cmp byte [eax], 0x2f
jne 0x10117cfe
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jne 0x10117cf6
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x230]
cmp edx, 0xf
lea eax, [ebp - 0x230]
cmova eax, esi
mov esi, dword [ebp - 0x258]
push esi
push dword [ebp - 0x254]
push eax
call fcn.10117030
mov eax, 0x10209f7c
add esp, 0xc
mov dword [ebp - 0x260], eax
nop dword [eax]
push 0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1011801b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1010bc10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10117dfa
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x10117db7
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117dad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011810a
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x234]
cmp ecx, 0xf
jbe 0x10117e34
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117e2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011810a
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov ecx, dword [ebp - 0x230]
cmp edi, 0xf
mov esi, dword [ebp - 0x220]
cmova eax, ecx
mov dword [ebp - 0x268], edi
mov al, byte [esi + eax - 1]
cmp al, 0x5c
je 0x10117f8c
cmp al, 0x2f
je 0x10117f8c
cmp esi, edi
jae 0x10117e90
lea eax, [esi + 1]
cmp edi, 0xf
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmova eax, ecx
mov word [eax + esi], 0x5c
jmp 0x10117f8c
mov eax, 0x7fffffff
sub eax, esi
cmp eax, 1
jb 0x10118119
lea ecx, [esi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x10117eb5
mov ecx, 0x7fffffff
jmp 0x10117ed3
mov edx, edi
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x10117ecb
mov ecx, 0x7fffffff
jmp 0x10117ed3
lea eax, [edi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], ecx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1000368f
lea ecx, [esi + 1]
mov dword [ebp - 0x25c], eax
add esp, 8
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x21c], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0x250], ecx
push esi
cmp edi, 0xf
jbe 0x10117f65
mov edi, dword [ebp - 0x230]
push edi
push eax
call fcn.1006f830
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov ecx, dword [ebp - 0x268]
inc ecx
mov word [eax], 0x5c
cmp ecx, 0x1000
jb 0x10117f59
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x1011810a
mov edi, edx
push ecx
push edi
call fcn.1006dd11
add esp, 8
jmp 0x10117f80
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.1006f830
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov word [eax], 0x5c
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x230], eax
mov edi, dword [ebp - 0x26c]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10117f97
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.100051f2
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x230]
cmp edx, 0xf
cmova ecx, esi
add ecx, dword [ebp - 0x220]
cmp edx, 0xf
cmova eax, esi
cmp eax, ecx
je 0x10117ff9
nop dword [eax + eax]
cmp byte [eax], 0x2f
jne 0x10117fe8
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jne 0x10117fe0
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x230]
cmp edx, 0xf
lea eax, [ebp - 0x230]
cmova eax, esi
mov esi, dword [ebp - 0x258]
push esi
push dword [ebp - 0x254]
push eax
call fcn.10117030
add esp, 0xc
mov eax, dword [ebp - 0x260]
add eax, 4
mov dword [ebp - 0x260], eax
cmp eax, 0x10209f84
jne 0x10117d40
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x1011806f
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10118065
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10118114
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 0x10253728
call fcn.101426aa
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006d7ba
mov esp, ebp
pop ebp
ret
push 0x10253758
call fcn.1006d849
add esp, 4
cmp dword [0x10253758], 0xffffffff
jne 0x101178b8
push 2
push 0x10253728
call fcn.10142669
push 0x10151270
call fcn.1006dcf7
push 0x10253758
call fcn.1006d7f8
add esp, 0x10
jmp 0x101178b8
push 5
call fcn.10142841
dec eax
push 6
mov dword [0x10253754], eax
call fcn.10142841
call fcn.100735b5
call fcn.100735b5
call fcn.100735b5
call fcn.1000281b
int3