Function at 0x10016230
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085609
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x500], edi
mov dword [ebp - 0x510], eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x508], edi
jb 0x10016287
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016377
call fcn.1002d0c0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10016e27
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x55c]
mov dword [ebp - 0x54c], edi
mov dword [ebp - 0x548], 0xf
mov byte [ebp - 0x55c], al
call fcn.1000f590
push 3
push 0x1008cdbc
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.1000f590
mov byte [ebp - 4], 1
call fcn.1002d0c0
mov edi, eax
lea ecx, [ebp - 0x6c0]
push 0x8c
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.10006090
mov esi, eax
push str.The_from_folder_is_not_exists
push esi
mov byte [ebp - 4], 2
call fcn.10006fa0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x6c0]
call fcn.100071f0
lea ecx, [ebp - 0x528]
call fcn.10006a30
lea ecx, [ebp - 0x55c]
jmp 0x10016e22
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016381
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001639f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016396
mov eax, dword [esi]
push eax
call fcn.1007f330
add esp, 4
push esi
call fcn.10016e60
add esp, 4
test al, al
jne 0x100164be
call fcn.1002d0c0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10016e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x518], edi
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.1000f590
push 3
push 0x1008cdbc
lea ecx, [ebp - 0x55c]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x548], 0xf
mov byte [ebp - 0x55c], 0
call fcn.1000f590
mov byte [ebp - 4], 4
call fcn.1002d0c0
mov dword [ebp - 0x510], eax
lea ecx, [ebp - 0x6c0]
push 0x94
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.10006090
mov edi, eax
push str.Create_folder_
push edi
mov byte [ebp - 4], 5
call fcn.10006fa0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x10016481
mov esi, dword [esi]
test esi, esi
mov eax, 0x1008ce68
cmovne eax, esi
push eax
push edi
call fcn.10004420
push str._failed__error_code_
push edi
call fcn.10006fa0
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x500]
call fcn.10015fd0
mov ecx, dword [ebp - 0x510]
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x10016e06
push 0x208
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.10059fd0
mov eax, dword [ebp - 0x510]
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100164e4
mov ecx, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x27c]
push ecx
push eax
call esi
push 0x1008db7c
lea eax, [ebp - 0x27c]
push eax
call esi
lea eax, [ebp - 0x4fc]
push eax
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
je 0x10016d2c
test eax, eax
je 0x10016d2c
mov dword [ebp - 0x508], 1
mov esi, eax
nop dword [eax]
cmp word [ebp - 0x4d0], 0x2e
mov ax, word [ebp - 0x4ce]
jne 0x1001655a
test ax, ax
je 0x10016d0a
cmp ax, 0x2e
jne 0x1001656e
cmp word [ebp - 0x4cc], 0
je 0x10016d0a
mov esi, dword [ebp - 0x510]
lea ecx, [ebp - 0x544]
xor eax, eax
mov dword [ebp - 4], 9
mov word [ebp - 0x544], ax
or edi, 1
mov dword [ebp - 0x534], 0
mov eax, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x530], 7
push eax
mov dword [ebp - 0x500], edi
call fcn.10010230
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100165bb
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x544]
push eax
call fcn.1000f400
push 1
push 0x1008ccb4
lea ecx, [ebp - 0x544]
call fcn.1000f400
lea ecx, [ebp - 0x4d0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100165e5
sub ecx, edx
lea eax, [ebp - 0x4d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x544]
call fcn.1000f400
mov dword [ebp - 0x29c], 0
xor ecx, ecx
mov dword [ebp - 0x298], 0
or edi, 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x29c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and edi, 0xfffffffe
mov dword [ebp - 0x50c], edi
mov edx, dword [ebp - 0x530]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x10016695
mov ecx, dword [ebp - 0x544]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001668b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov esi, dword [ebp - 0x560]
lea eax, [ebp - 0x2ac]
cmp dword [ebp - 0x298], 8
mov ecx, dword [ebp - 0x2ac]
cmovae eax, ecx
mov dword [ebp - 0x52c], ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100166c1
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
cmp edx, dword [ebp - 0x29c]
jne 0x10016722
test edx, edx
jbe 0x100166f7
sub ecx, eax
mov dword [ebp - 0x500], ecx
nop dword [eax + eax]
mov cx, word [ecx + eax]
cmp cx, word [eax]
jne 0x1001671f
mov ecx, dword [ebp - 0x500]
add eax, 2
sub edx, 1
jne 0x100166e0
mov eax, dword [ebp - 0x298]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x10016d04
mov ecx, dword [ebp - 0x52c]
lea edx, [eax*2 + 2]
jmp 0x10016cdc
mov edx, dword [esi + 0x10]
xor eax, eax
mov byte [ebp - 4], 0xc
mov word [ebp - 0x528], ax
lea ecx, [ebp - 0x528]
lea eax, [edx + 1]
mov dword [ebp - 0x518], 0
or edi, 4
mov dword [ebp - 0x514], 7
push eax
mov dword [ebp - 0x500], edi
call fcn.10010230
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016765
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x528]
push eax
call fcn.1000f400
push 1
push 0x1008ccb4
lea ecx, [ebp - 0x528]
call fcn.1000f400
lea ecx, [ebp - 0x4d0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016790
sub ecx, edx
lea eax, [ebp - 0x4d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x528]
call fcn.1000f400
mov edi, dword [ebp - 0x50c]
xor ecx, ecx
mov dword [ebp - 0x284], 0
or edi, 0xc
mov dword [ebp - 0x280], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x294], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x284], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and edi, 0xfffffffb
mov edx, dword [ebp - 0x514]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x10016840
mov ecx, dword [ebp - 0x528]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016836
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
xor eax, eax
mov dword [ebp - 0x518], 0
test byte [ebp - 0x4fc], 0x10
mov dword [ebp - 0x514], 7
mov word [ebp - 0x528], ax
je 0x10016884
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.10016230
and dword [ebp - 0x508], eax
jmp 0x10016c5d
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x294]
lea eax, [ebp - 0x2ac]
cmovae ecx, dword [ebp - 0x294]
cmp dword [ebp - 0x298], 8
push ecx
cmovae eax, dword [ebp - 0x2ac]
push eax
call fcn.10017f30
and dword [ebp - 0x508], eax
add esp, 8
mov dword [ebp - 0x52c], eax
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10016c60
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x544]
mov dword [ebp - 0x534], eax
mov dword [ebp - 0x530], 0xf
mov byte [ebp - 0x544], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x57c], 0xf
mov byte [ebp - 0x590], 0
call fcn.1000f590
mov byte [ebp - 4], 0x10
call fcn.1002d0c0
push 1
push 2
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x500], eax
call fcn.10015b10
push 0xffffffffffffffff
push 0x1008ce78
lea ecx, [ebp - 0x544]
mov byte [ebp - 4], 0x11
call fcn.100103b0
push 0xffffffffffffffff
push 0x1008ce7c
lea ecx, [ebp - 0x544]
mov dword [ebp - 0x50c], eax
call fcn.100103b0
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
cmp esi, 0xffffffff
je 0x10016a92
mov ecx, dword [ebp - 0x50c]
lea eax, [esi - 1]
cmp ecx, eax
jae 0x10016a92
mov eax, dword [ebp - 0x534]
lea edx, [ecx + 1]
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0xf
mov byte [ebp - 0x578], 0
cmp eax, edx
jb 0x10016e4d
sub esi, ecx
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x530], 0x10
lea eax, [ebp - 0x544]
cmovae eax, dword [ebp - 0x544]
push ecx
add eax, edx
lea ecx, [ebp - 0x578]
push eax
call fcn.1000f590
or edi, 0x10
lea eax, [ebp - 0x578]
cmp dword [ebp - 0x564], 0x10
cmovae eax, dword [ebp - 0x578]
push eax
push 0xb6
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.100059e0
mov edx, dword [ebp - 0x564]
add esp, 0x10
cmp edx, 0x10
jb 0x10016a75
mov ecx, dword [ebp - 0x578]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016a6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0xf
mov byte [ebp - 0x578], 0
jmp 0x10016aa8
push 0xb6
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.100059e0
add esp, 0xc
cmp dword [ebp - 0x57c], 0x10
lea eax, [ebp - 0x590]
cmovae eax, dword [ebp - 0x590]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10006fa0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10006fa0
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 0x12
push str.CopyFile
push eax
call fcn.10006fa0
cmp dword [ebp - 0x298], 8
lea ecx, [ebp - 0x2ac]
mov eax, 0x1008ce68
cmovae ecx, dword [ebp - 0x2ac]
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10004420
lea eax, [ebp - 0x628]
push str._to
push eax
call fcn.10006fa0
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x294]
mov eax, 0x1008ce68
cmovae ecx, dword [ebp - 0x294]
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10004420
lea eax, [ebp - 0x628]
push str.__res_
push eax
call fcn.10006fa0
add esp, 0x38
lea ecx, [ebp - 0x628]
push dword [ebp - 0x52c]
call fcn.10015df0
mov eax, dword [ebp - 0x628]
lea ecx, [ebp - 0x628]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.1001aa60
movzx eax, ax
lea ecx, [ebp - 0x628]
push eax
call fcn.1001a700
lea ecx, [ebp - 0x628]
call fcn.1001a5f0
mov ecx, dword [ebp - 0x500]
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x628]
call fcn.100071f0
mov edx, dword [ebp - 0x57c]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x10016c07
mov ecx, dword [ebp - 0x590]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016bfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x57c], 0xf
mov byte [ebp - 0x590], 0
mov byte [ebp - 4], 0xe
cmp edx, 0x10
jb 0x10016c60
mov ecx, dword [ebp - 0x544]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016c56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov edx, dword [ebp - 0x280]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x10016ca4
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016c9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov edx, dword [ebp - 0x298]
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x294], ax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], eax
cmp edx, 8
jb 0x10016d04
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016cfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016e48
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov esi, dword [ebp - 0x504]
lea eax, [ebp - 0x4fc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10016540
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10016e27
call fcn.1002d0c0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10016e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x518], edi
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.1000f590
push 3
push 0x1008cdbc
lea ecx, [ebp - 0x55c]
mov dword [ebp - 4], 6
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x548], 0xf
mov byte [ebp - 0x55c], 0
call fcn.1000f590
mov byte [ebp - 4], 7
call fcn.1002d0c0
mov edi, eax
lea ecx, [ebp - 0x6c0]
push 0x9f
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.10006090
mov esi, eax
push str.FindFirstFile_failed__error_code_
push esi
mov byte [ebp - 4], 8
call fcn.10006fa0
add esp, 8
mov ecx, esi
push dword [ebp - 0x50c]
call fcn.10015fd0
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x6c0]
call fcn.100071f0
lea ecx, [ebp - 0x55c]
call fcn.10006a30
lea ecx, [ebp - 0x528]
call fcn.10006a30
mov eax, dword [ebp - 0x508]
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.1002ef19
mov esp, ebp
pop ebp
ret
call fcn.1005e18e
call fcn.1000ef70
int3