Function at 0x101155a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x224], ebx
cmp dword [ebx + 0xc0], 0
je 0x1011570a
call fcn.1000ad40
mov ecx, dword [ebx + 0xc0]
push eax
call fcn.101317b0
call fcn.10115330
test eax, eax
jne 0x1011570a
call fcn.1000ad40
test eax, eax
je 0x10115602
mov eax, dword [ebx + 0xc0]
cmp dword [eax + 0x30], 0
je 0x1011570a
xor esi, esi
xor edi, edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
cmp dword [0x10259c04], esi
je 0x1011570a
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.102134e7
add esp, 0xc
call fcn.1000ad40
test eax, eax
je 0x101157f8
call fcn.100e9430
test eax, eax
jne 0x1011571d
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x1011570a
mov edi, dword [ebp - 0x214]
cmp esi, edi
je 0x101156d7
lea esp, [esp]
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101156ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x101156b0
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10115700
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116058
push ecx
push esi
call fcn.102134ff
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push 0
push 0x29
push eax
push 0
call esi
test eax, eax
je 0x10115759
push 0
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10116140
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edi
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x102
call fcn.100e6f30
add esp, 8
cmp word [ebp - 0x20c], 0
je 0x101157f1
push 1
mov ecx, 0x1025a378
call fcn.10009a80
push 1
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10116140
push 0
push 0x24
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
je 0x101157d9
push 0
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10116c80
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x228], eax
push 0
mov ecx, 0x1025a378
call fcn.10009a80
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], edi
mov eax, 1
jmp 0x1011586b
lea eax, [ebp - 0x20c]
push eax
push 0x102
call fcn.100e6f30
add esp, 8
lea eax, [ebp - 0x23c]
mov ecx, ebx
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10116140
push 0
push 0x24
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1011585d
push 0
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10116c80
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x228], eax
mov edi, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x22c], edi
push eax
lea eax, [ebp - 0x254]
mov ecx, ebx
push eax
call fcn.10116860
mov ecx, dword [ebp - 0x238]
mov eax, 0x2aaaaaab
sub ecx, edi
mov dword [ebp - 0x220], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x230], eax
je 0x10115b49
mov ebx, edi
jmp 0x101158b0
mov edi, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
cmp esi, edi
je 0x101158e7
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101158da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x101158c0
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x214], esi
cmp esi, dword [ebp - 0x210]
je 0x10115911
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10004ba0
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebp - 0x214], 4
jmp 0x1011591e
push ebx
push esi
lea ecx, [ebp - 0x218]
call fcn.10006410
push 1
push 0
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1011595c
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1011599c
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x101159d6
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x10115a10
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x21c]
push 0xd
mov dword [ebp - 0x21c], eax
call fcn.10004a70
test al, al
jne 0x10115a63
mov ecx, 0xd
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10115a46
sub ecx, edx
sar ecx, 1
push ecx
push 0xd
lea ecx, [ebp - 0x21c]
call fcn.10004050
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x224]
push 0
push 0xffffffffffffffff
push 4
push 0
push eax
push 0
push esi
push 0x10219d7c
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.100d6a20
mov edi, eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10115aab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x270], edi
call fcn.10114510
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi + 0xd0]
cmp ecx, dword [esi + 0xd4]
je 0x10115af1
mov eax, dword [ebp - 0x270]
mov dword [ecx], eax
lea eax, [ebp - 0x26c]
push eax
add ecx, 4
call fcn.10114510
add dword [esi + 0xd0], 0x1c
jmp 0x10115b04
lea eax, [ebp - 0x270]
push eax
push ecx
lea ecx, [esi + 0xcc]
call fcn.101142a0
lea ecx, [ebp - 0x268]
call fcn.101147d0
mov edx, dword [ebp - 0x26c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115b2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
add ebx, 0x18
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x230]
jb 0x101158b0
mov ecx, dword [ebp - 0x244]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x228]
sub ecx, ebx
imul ecx
mov dword [ebp - 0x220], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x230], eax
je 0x10115e19
mov edi, edi
mov edi, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
cmp esi, edi
je 0x10115bb7
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115baa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x10115b90
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x214], esi
cmp esi, dword [ebp - 0x210]
je 0x10115be1
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10004ba0
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebp - 0x214], 4
jmp 0x10115bee
push ebx
push esi
lea ecx, [ebp - 0x218]
call fcn.10006410
push 1
push 0
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x10115c2c
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x10115c6c
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011605d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x10115ca6
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
test eax, eax
je 0x1011605d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x10115ce0
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1011605d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x21c]
push 0xd
mov dword [ebp - 0x21c], eax
call fcn.10004a70
test al, al
jne 0x10115d33
mov ecx, 0xd
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10115d16
sub ecx, edx
sar ecx, 1
push ecx
push 0xd
lea ecx, [ebp - 0x21c]
call fcn.10004050
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x224]
push 0
push 0xffffffffffffffff
push 4
push 0
push eax
push 0
push esi
push 0x10219d7c
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.100d6a20
mov edi, eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10115d7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x270], edi
call fcn.10114510
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi + 0xdc]
cmp ecx, dword [esi + 0xe0]
je 0x10115dc1
mov eax, dword [ebp - 0x270]
mov dword [ecx], eax
lea eax, [ebp - 0x26c]
push eax
add ecx, 4
call fcn.10114510
add dword [esi + 0xdc], 0x1c
jmp 0x10115dd4
lea eax, [ebp - 0x270]
push eax
push ecx
lea ecx, [esi + 0xd8]
call fcn.101142a0
lea ecx, [ebp - 0x268]
call fcn.101147d0
mov edx, dword [ebp - 0x26c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115dfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
add ebx, 0x18
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x230]
jb 0x10115b80
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x10115ea9
mov edi, dword [ebp - 0x214]
cmp esi, edi
je 0x10115e58
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115e4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x10115e31
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10115e81
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116058
push ecx
push esi
call fcn.102134ff
add esp, 8
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov edi, dword [ebp - 0x254]
test edi, edi
je 0x10115f33
mov ebx, dword [ebp - 0x250]
mov esi, edi
cmp esi, ebx
je 0x10115eec
lea ecx, [esi + 4]
call fcn.101147d0
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115ee5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, ebx
jne 0x10115ec3
mov ecx, dword [ebp - 0x24c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10115f29
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116058
push ecx
push edi
call fcn.102134ff
add esp, 8
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x10115fc0
mov edi, dword [ebp - 0x244]
mov esi, ebx
cmp esi, edi
je 0x10115f79
lea ecx, [ecx]
lea ecx, [esi + 4]
call fcn.101147d0
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115f72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, edi
jne 0x10115f50
mov ecx, dword [ebp - 0x240]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x10115fb6
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116058
push ecx
push ebx
call fcn.102134ff
add esp, 8
mov ebx, dword [ebp - 0x22c]
test ebx, ebx
je 0x10116042
mov edi, dword [ebp - 0x238]
mov esi, ebx
cmp esi, edi
je 0x10115fff
lea ecx, [esi + 4]
call fcn.101147d0
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10115ff8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, edi
jne 0x10115fd6
mov ecx, dword [ebp - 0x234]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x10116038
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116058
push ecx
push ebx
call fcn.102134ff
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
call fcn.10200ab0
push 0x80004005
call fcn.100030c0
int3