Function at 0x10013fd0
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x101933a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x680], 0
push 0
push eax
call fcn.10129ae0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SogouExplorer
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, 0x5c
mov dword [ebp - 0x220], 0
mov word [ebp - 0x224], ax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10014617
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
shr eax, 0x10
mov dword [ebp - 0x690], eax
test eax, eax
jne 0x100140bb
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x684]
push eax
call fcn.1000b800
jmp 0x100140e6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100140c4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x684]
call fcn.1000e410
mov edi, dword [ebp - 0x684]
mov byte [ebp - 4], 3
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x10014102
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10014118
call fcn.1000b6b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10014621
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [edi - 0xc]
mov dword [ebp - 0x680], 1
mov dword [ebp - 0x68c], ebx
lea esi, [eax + 0x10]
lea edx, [ebx + 4]
mov dword [ebp - 0x688], esi
test edx, edx
js 0x1001462b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10014167
push edx
lea ecx, [ebp - 0x688]
call fcn.1000b9b0
mov esi, dword [ebp - 0x688]
add ebx, ebx
push ebx
push edi
push ebx
push esi
call fcn.1000ffd0
lea eax, [ebx + esi]
add esp, 0x10
test eax, eax
jne 0x1001418e
call fcn.1012fe1b
mov dword [eax], 0x16
call fcn.1012d199
jmp 0x1001419a
movq xmm0, qword [str..]
movq qword [eax], xmm0
mov eax, dword [ebp - 0x68c]
add eax, 4
cmp eax, dword [esi - 8]
jg 0x1001462b
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x21c], ecx
test eax, eax
je 0x100141dd
cmp eax, 0xffffffff
je 0x100141dd
push eax
call ebx
mov dword [ebp - 0x220], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x100141f2
mov bl, 1
jmp 0x100142cc
push esi
lea eax, [ebp - 0x650]
push 0x104
push eax
call fcn.101303df
push eax
call fcn.1000cad0
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
jne 0x1001422d
mov bl, 1
jmp 0x100142cc
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10014274
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10014268
cmp eax, 0xffffffff
je 0x10014268
push eax
call ebx
mov dword [ebp - 0x220], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, 1
jmp 0x100142cc
lea eax, [ebp - 0x42c]
push 0x5c
push eax
call fcn.10129eb6
mov ebx, eax
lea eax, [ebp - 0x42c]
push 0x2f
push eax
call fcn.10129eb6
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x100142a5
test ebx, ebx
je 0x100142c0
lea ecx, [ebp - 0x42c]
test ebx, ebx
lea eax, [ebp - 0x42c]
cmovne eax, ebx
cmp ecx, eax
jb 0x100142bb
xor eax, eax
mov word [ecx], ax
jmp 0x100142c0
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x21c], 1
xor bl, bl
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100142e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x100145bf
xor ebx, ebx
mov dword [ebp - 0x680], ebx
nop dword [eax + eax]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x698], ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014310
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x684]
call fcn.1000e410
cmp dword [ebp - 0x21c], 0
je 0x10014489
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x10014489
cmp word [ebp - 0x650], 0x2e
jne 0x1001437f
mov ax, word [ebp - 0x64e]
test ax, ax
je 0x10014489
cmp ax, 0x2e
jne 0x1001437f
cmp word [ebp - 0x64c], 0
je 0x10014489
mov byte [ebp - 4], 4
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10014617
mov eax, dword [ecx]
call dword [eax + 0xc]
or ebx, 2
cmp dword [ebp - 0x21c], 0
mov dword [ebp - 0x680], ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x688], esi
je 0x100143e8
lea ecx, [ebp - 0x650]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100143c0
sub ecx, edx
lea eax, [ebp - 0x650]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x688]
call fcn.1000e410
mov esi, dword [ebp - 0x688]
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x684]
push str._s_suhistory3.db
push eax
call fcn.1000ee70
mov edi, dword [ebp - 0x684]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001445c
mov ebx, dword [ebp - 0x694]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x68c], eax
cmp dword [ebx + 0xc], eax
je 0x10014446
lea eax, [edi - 0x10]
push eax
call fcn.1000cb70
mov ecx, dword [ebp - 0x68c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 8], 4
jmp 0x1001445c
lea ecx, [ebp - 0x684]
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.1000ec40
mov edi, dword [ebp - 0x684]
mov ebx, dword [ebp - 0x698]
add esi, 0xfffffff0
and ebx, 0xfffffffd
mov byte [ebp - 4], 2
mov dword [ebp - 0x680], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001448f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001448f
mov edi, dword [ebp - 0x684]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100144be
cmp dword [ebp - 0x21c], 0
je 0x100144be
lea ecx, [ebp - 0x67c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10014300
push str.uhistory3.db
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100145bf
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10014635
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x690], 0
mov byte [ebp - 4], 5
jne 0x10014526
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x680]
push eax
call fcn.1000b800
jmp 0x10014552
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014530
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x680]
call fcn.1000e410
mov ebx, dword [ebp - 0x694]
mov byte [ebp - 4], 6
mov eax, dword [ebx + 8]
mov dword [ebp - 0x690], eax
cmp dword [ebx + 0xc], eax
je 0x1001458d
mov esi, dword [ebp - 0x680]
lea eax, [esi - 0x10]
push eax
call fcn.1000cb70
mov ecx, dword [ebp - 0x690]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 8], 4
jmp 0x100145a3
lea ecx, [ebp - 0x680]
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.1000e680
mov esi, dword [ebp - 0x680]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100145bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100145db
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x21c], 0
test eax, eax
je 0x100145fb
cmp eax, 0xffffffff
je 0x100145fb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061045
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000b280
push 0x80004005
call fcn.1000b280
push 0x80070057
call fcn.1000b280
push 0x80004005
call fcn.1000b280
int3