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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015294e
mov eax, dword fs:[0]
push eax
sub esp, 0x684
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 - 0x690], ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x688], 0
push 0
push eax
call fcn.10129ae0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.liebaoUser_Data
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10013bcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x680], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x680]
test eax, 0xffff0000
jne 0x100136db
movzx eax, ax
push eax
call fcn.1000b800
jmp 0x100136e1
push eax
call fcn.1000e890
mov esi, dword [ebp - 0x680]
mov dword [ebp - 4], 1
cmp dword [esi - 0xc], 0
je 0x10013b8c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013b8c
mov eax, 0x5c
mov dword [ebp - 0x220], 0
mov word [ebp - 0x224], ax
mov dword [ebp - 0x21c], 0
mov ecx, dword [esi - 0x10]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001373d
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10013753
call fcn.1000b6b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10013bd5
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x688], 1
mov dword [ebp - 0x68c], edx
lea edi, [eax + 0x10]
lea ebx, [edx + 4]
mov dword [ebp - 0x684], edi
test ebx, ebx
js 0x10013bdf
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x100137a8
push ebx
lea ecx, [ebp - 0x684]
call fcn.1000b9b0
mov edi, dword [ebp - 0x684]
mov edx, dword [ebp - 0x68c]
push edx
push esi
push edx
push edi
call fcn.1000b570
mov eax, dword [ebp - 0x68c]
add esp, 0x10
lea eax, [edi + eax*2]
test eax, eax
jne 0x100137d3
call fcn.1012fe1b
mov dword [eax], 0x16
call fcn.1012d199
jmp 0x100137df
movq xmm0, qword [str..]
movq qword [eax], xmm0
cmp ebx, dword [edi - 8]
jg 0x10013bdf
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10013819
cmp eax, 0xffffffff
je 0x10013819
push eax
call ebx
mov dword [ebp - 0x220], 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x1001382e
mov bl, 1
jmp 0x10013908
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
jne 0x10013869
mov bl, 1
jmp 0x10013908
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x100138b0
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100138a4
cmp eax, 0xffffffff
je 0x100138a4
push eax
call ebx
mov dword [ebp - 0x220], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, 1
jmp 0x10013908
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 0x100138e1
test ebx, ebx
je 0x100138fc
lea ecx, [ebp - 0x42c]
test ebx, ebx
lea eax, [ebp - 0x42c]
cmovne eax, ebx
cmp ecx, eax
jb 0x100138f7
xor eax, eax
mov word [ecx], ax
jmp 0x100138fc
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x21c], 1
xor bl, bl
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10013924
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10013940
mov eax, dword [ebp - 0x220]
xor edi, edi
jmp 0x10013b66
lea edi, [ebp - 0x218]
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10013950
sub edi, ecx
sar edi, 1
jne 0x10013977
lea ecx, [ebp - 0x680]
call fcn.1000cc00
mov esi, dword [ebp - 0x680]
jmp 0x10013a2b
mov eax, dword [esi - 0xc]
lea ebx, [ebp - 0x218]
sub ebx, esi
mov dword [ebp - 0x688], eax
sar ebx, 1
test edi, edi
js 0x10013bdf
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x100139b5
push edi
lea ecx, [ebp - 0x680]
call fcn.1000b9b0
mov esi, dword [ebp - 0x680]
cmp ebx, dword [ebp - 0x688]
ja 0x10013a05
mov eax, dword [esi - 8]
lea ecx, [edi + edi]
lea edx, [esi + ebx*2]
test ecx, ecx
je 0x10013a19
test edx, edx
jne 0x100139e0
call fcn.1012fe1b
mov dword [eax], 0x16
call fcn.1012d199
jmp 0x10013a19
add eax, eax
cmp eax, ecx
jae 0x100139f8
call fcn.1012fe1b
mov dword [eax], 0x22
call fcn.1012d199
jmp 0x10013a19
push ecx
push edx
push esi
call fcn.10129560
add esp, 0xc
jmp 0x10013a19
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi - 8]
push esi
call fcn.1000b570
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x10013bdf
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [ebp - 0x21c], 0
je 0x10013b2c
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x10013b2c
cmp word [ebp - 0x650], 0x2e
jne 0x10013a78
mov ax, word [ebp - 0x64e]
test ax, ax
je 0x10013b2c
cmp ax, 0x2e
jne 0x10013a78
cmp word [ebp - 0x64c], 0
je 0x10013b2c
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x67c]
call fcn.10013bf0
push 4
push str.kswl
push dword [ebp - 0x684]
mov byte [ebp - 4], 4
call fcn.1014066c
add esp, 0xc
test eax, eax
jne 0x10013b0a
push dword [ebp - 0x684]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x680]
push str._s_sHistory
push eax
call fcn.1000ee70
mov esi, dword [ebp - 0x680]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013b0a
mov edi, dword [ebp - 0x690]
lea ecx, [ebp - 0x680]
push ecx
mov eax, dword [edi + 8]
cmp dword [edi + 0xc], eax
je 0x10013afb
mov ecx, eax
call fcn.1000a7a0
add dword [edi + 8], 4
jmp 0x10013b0a
push eax
lea ecx, [edi + 4]
call fcn.1000ec40
mov esi, dword [ebp - 0x680]
mov edx, dword [ebp - 0x684]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013b2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10013b61
cmp dword [ebp - 0x21c], 0
je 0x10013b61
lea ecx, [ebp - 0x67c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10013940
mov eax, dword [ebp - 0x220]
mov edi, 1
mov dword [ebp - 0x21c], 0
test eax, eax
je 0x10013b8e
cmp eax, 0xffffffff
je 0x10013b8e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x220], 0
jmp 0x10013b8e
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10013bad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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
int3