Function at 0x1012ce60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10166e53
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x102a0600]
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 [0x102a73f4]
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 [0x102a8b68]
cmp eax, dword [ecx + 8]
jg 0x1012d6d4
push 0x102a8b38
mov dword [ebp - 0x274], 0x102a8b38
call fcn.10080a84
add esp, 4
test eax, eax
jne 0x1012d716
mov eax, dword [0x102a8b64]
cmp eax, 0x7fffffff
je 0x1012d71d
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.10094ba0
add esp, 4
test eax, eax
je 0x1012d03a
cmp byte [edi + 1], 0x3a
jne 0x1012d03a
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1012cf5d
cmp al, 0x2f
je 0x1012cf5d
xor eax, eax
jmp 0x1012cf62
mov eax, 1
test eax, eax
je 0x1012d03a
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 0x1012cf90
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.10025eb3
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.1012c620
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.1012c650
add esp, 0x1c
lea ecx, [ebp - 0x248]
call fcn.1000b0cb
jmp 0x1012d6aa
cmp byte [edi], 0x5c
jne 0x1012d070
cmp byte [edi + 1], 0x5c
jne 0x1012d070
cmp byte [edi + 2], 0x3f
jne 0x1012d070
cmp byte [edi + 3], 0x5c
jne 0x1012d070
push esi
push dword [ebp - 0x254]
push edi
call fcn.1012c650
push 0x102a8b38
call fcn.10080aa9
add esp, 0x10
jmp 0x1012d6b7
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 0x1021cd84
push eax
call fcn.10121080
add esp, 8
cmp byte [ebp - 0x290], 0
mov byte [ebp - 4], 4
je 0x1012d1c3
cmp dword [ebp - 0x278], 7
lea eax, [ebp - 0x28c]
cmova eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10121230
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x1012d16e
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x1012d12b
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012d121
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d72a
push ecx
push edx
call fcn.100849ca
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.1000b0cb
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 0x1012d1a7
cmp al, 0x2f
jne 0x1012d2d9
dec ecx
lea eax, [ebp - 0x230]
cmp edx, 0xf
mov dword [ebp - 0x220], ecx
cmova eax, esi
mov byte [eax + ecx], 0
jmp 0x1012d2d9
push 0
push 0
call fcn.1015bb84
mov edi, eax
add esp, 8
test edi, edi
je 0x1012d2c9
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.10121230
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x1012d272
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x1012d22f
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012d225
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d72f
push ecx
push edx
call fcn.100849ca
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.1000b0cb
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 0x1012d2a7
cmp al, 0x2f
jne 0x1012d2be
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.10094af5
add esp, 4
jmp 0x1012d2d9
push 0x1016d1c8
lea ecx, [ebp - 0x230]
call fcn.100eac40
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.100ea970
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 0x1012d32f
cmp byte [eax], 0x2f
jne 0x1012d31e
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jne 0x1012d316
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.1012c650
mov eax, 0x1021cd7c
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 0x1012d63b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10121230
mov esi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x1012d41a
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x1012d3d7
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012d3cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d72a
push ecx
push edx
call fcn.100849ca
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 0x1012d454
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012d44a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d72a
push ecx
push edx
call fcn.100849ca
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 0x1012d5ac
cmp al, 0x2f
je 0x1012d5ac
cmp esi, edi
jae 0x1012d4b0
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 0x1012d5ac
mov eax, 0x7fffffff
sub eax, esi
cmp eax, 1
jb 0x1012d739
lea ecx, [esi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1012d4d5
mov ecx, 0x7fffffff
jmp 0x1012d4f3
mov edx, edi
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x1012d4eb
mov ecx, 0x7fffffff
jmp 0x1012d4f3
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.1002a53b
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 0x1012d585
mov edi, dword [ebp - 0x230]
push edi
push eax
call fcn.10086560
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov ecx, dword [ebp - 0x268]
inc ecx
mov word [eax], 0x5c
cmp ecx, 0x1000
jb 0x1012d579
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x1012d72a
mov edi, edx
push ecx
push edi
call fcn.100849ca
add esp, 8
jmp 0x1012d5a0
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.10086560
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 0x1012d5b7
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.10043690
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 0x1012d619
nop dword [eax + eax]
cmp byte [eax], 0x2f
jne 0x1012d608
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jne 0x1012d600
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.1012c650
add esp, 0xc
mov eax, dword [ebp - 0x260]
add eax, 4
mov dword [ebp - 0x260], eax
cmp eax, 0x1021cd84
jne 0x1012d360
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x1012d68f
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012d685
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d734
push ecx
push edx
call fcn.100849ca
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 0x102a8b38
call fcn.10080aa9
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.10084465
mov esp, ebp
pop ebp
ret
push 0x102a8b68
call fcn.10084502
add esp, 4
cmp dword [0x102a8b68], 0xffffffff
jne 0x1012ced8
push 2
push 0x102a8b38
call fcn.10080a68
push 0x101687e0
call fcn.100849b0
push 0x102a8b68
call fcn.100844b1
add esp, 0x10
jmp 0x1012ced8
push 5
call fcn.1008052d
dec eax
push 6
mov dword [0x102a8b64], eax
call fcn.1008052d
call fcn.1009532c
call fcn.1009532c
call fcn.1009532c
call fcn.10002923
int3