Function at 0x10001cf0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100176b6
mov eax, dword fs:[0]
push eax
sub esp, 0x574
mov eax, dword [0x1001d080]
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 edi, dword [sym.imp.kload.dll__LogX]
push str.Initializing_filename_cache...
push 0x1001e0b0
call edi
mov eax, dword [0x10023324]
mov ecx, dword [eax]
add esp, 8
mov dword [ebp - 0x568], ecx
cmp ecx, eax
je 0x100022f7
mov edi, dword [ebp - 0x568]
add edi, 8
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x570], edi
jb 0x10001d61
mov eax, dword [edi]
jmp 0x10001d63
mov eax, edi
xor ebx, ebx
xor ecx, ecx
mov word [ebp - 0x64], cx
mov ecx, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x10001d80
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x64]
call fcn.100036f0
push 0xa
mov eax, str.img.img
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.100035c0
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x10001db5
mov edi, dword [edi]
push edi
push str.processing_afs_root__s
push 0x1001e0b0
call dword [sym.imp.kload.dll__LogX]
mov eax, dword [ebp - 0x64]
add esp, 0xc
cmp dword [ebp - 0x50], esi
jae 0x10001dd4
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x560]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x574], eax
cmp eax, 0xffffffff
jne 0x10001e02
mov dword [ebp - 4], eax
cmp dword [ebp - 0x50], esi
jb 0x100022d7
mov eax, dword [ebp - 0x64]
push eax
jmp 0x100022cf
xor edi, edi
test byte [ebp - 0x560], 0x10
je 0x1000229b
mov ecx, 0x1001a3a8
lea eax, [ebp - 0x534]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10001e46
cmp dx, di
je 0x10001e42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10001e46
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10001e20
xor eax, eax
jmp 0x10001e4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x10001e04
mov ecx, 0x1001a3ac
lea eax, [ebp - 0x534]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10001e86
cmp dx, di
je 0x10001e82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10001e86
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10001e60
xor eax, eax
jmp 0x10001e8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x10001e04
xor ecx, ecx
mov ebx, 7
push 6
mov eax, str..img_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
call fcn.100036f0
lea eax, [ebp - 0x534]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10001ec0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x534]
lea ecx, [ebp - 0x2c]
call fcn.100035c0
mov eax, dword [ebp - 0x570]
push edi
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
call fcn.10002c90
mov bl, 2
push 1
mov eax, 0x1001a3c4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.100035c0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.10004540
add esp, 8
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.100034d0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa8], esi
jb 0x10001f54
mov eax, dword [ebp - 0xbc]
push eax
call fcn.10007dc9
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10001f5f
lea eax, [ebp - 0x2c]
push eax
call fcn.10001190
add esp, 4
mov ebx, eax
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], edi
mov byte [ebp - 0x80], 0
lea edx, [eax + 1]
jmp 0x10001f80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001f80
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x80]
call fcn.10003400
push ebx
push 0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10001fb5
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x310]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x56c], eax
cmp eax, 0xffffffff
je 0x10002229
test byte [ebp - 0x310], 0x10
jne 0x10002207
lea edx, [ebp - 0x2e4]
push 0x5f
push edx
mov dword [ebp - 0x564], 0xffffffff
call fcn.10007b34
add esp, 8
test eax, eax
je 0x10002207
lea ecx, [ebp - 0x564]
push ecx
add eax, 2
push 0x1001a3d0
push eax
call fcn.10007219
add esp, 0xc
cmp eax, 1
jne 0x10002207
cmp dword [ebp - 0x564], 0
jl 0x10002207
lea edx, [ebp - 0x578]
push edx
lea ebx, [ebp - 0x80]
call fcn.100032b0
mov eax, dword [ebp - 0x578]
cmp eax, dword [0x10023338]
je 0x10002055
mov edi, dword [eax + 0x24]
jmp 0x1000213d
lea ecx, [ebp - 0x2c]
call fcn.10001430
mov ecx, dword [0x10023330]
add ecx, 2
imul eax, ecx
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
lea edx, [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0xa0], al
push edx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0xf
call fcn.10003ab0
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 5
mov eax, dword [0x10023338]
mov esi, dword [eax]
mov ecx, dword [esi + 4]
push ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.10004e90
mov edx, 0x7fffffe
sub edx, dword [0x1002333c]
cmp edx, 1
jb 0x10002356
inc dword [0x1002333c]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [0x10023338]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea ecx, [ebp - 0x580]
push ecx
push 0x10023334
call fcn.100047c0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8c], 0x10
jb 0x10002125
mov edx, dword [ebp - 0xa0]
push edx
call fcn.10007dc9
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], eax
mov byte [ebp - 0xa0], al
lea ecx, [ebp - 0x2c]
call fcn.10001430
mov esi, dword [ebp - 0x564]
cmp esi, eax
jge 0x10002207
lea eax, [ebp - 0x2e4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002160
mov ecx, dword [0x10023330]
sub eax, edx
sar eax, 1
cmp eax, ecx
jb 0x100021d9
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10002185
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.kload.dll__LogX]
push eax
lea eax, [ebp - 0x2e4]
push eax
push str.ERROR:_filename_too_long:___s___in_folder:__s_
push 0x1001e0b0
call esi
lea eax, [ebp - 0x2e4]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x100021b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100021b0
mov ecx, dword [0x10023330]
sub eax, edx
dec ecx
push ecx
sar eax, 1
push eax
push str.ERROR:_length___d_chars._Maximum_allowed_length:__d_chars.
push 0x1001e0b0
call esi
add esp, 0x10
jmp 0x10002207
lea edx, [ecx + 2]
imul edx, esi
dec ecx
push ecx
lea esi, [edi + edx*2]
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [esi + 4]
push ecx
call fcn.100077b1
mov eax, dword [ebp - 0x570]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10002205
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [ebp - 0x56c]
lea edx, [ebp - 0x310]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001fd2
mov eax, dword [ebp - 0x56c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x6c], 0x10
jb 0x10002242
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10007dc9
add esp, 4
xor esi, esi
mov ebx, 8
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x80], 0
cmp dword [ebp - 0x34], ebx
jb 0x10002268
mov edx, dword [ebp - 0x48]
push edx
call fcn.10007dc9
add esp, 4
xor eax, eax
mov edi, 7
mov byte [ebp - 4], al
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x1000228d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10007dc9
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
xor edi, edi
mov esi, dword [ebp - 0x574]
lea eax, [ebp - 0x560]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001e04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], 8
jb 0x100022d7
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10007dc9
add esp, 4
mov edx, dword [ebp - 0x568]
mov eax, dword [edx]
mov dword [ebp - 0x568], eax
cmp eax, dword [0x10023324]
jne 0x10001d48
mov edi, dword [sym.imp.kload.dll__LogX]
mov eax, dword [0x10023364]
mov esi, dword [eax]
cmp esi, eax
je 0x1000232b
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x1000230d
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
push ecx
push eax
push str.filename_cache:__s_:__d_slots
push 0x1001e0b0
call edi
mov esi, dword [esi]
add esp, 0x10
cmp esi, dword [0x10023364]
jne 0x10002302
push str.DONE_initializing_filename_cache.
push 0x1001e0b0
call edi
add esp, 8
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.10007054
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.10006f99
int3