Function at 0x10015d90
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x54], eax
mov al, byte [esi]
mov ebx, 0x100afbac
test al, al
jne 0x10015f5c
cmp dword [esi + 0x2a0], 0
je 0x100161a0
test al, al
jne 0x10015f5c
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x10015def
mov edx, dword [edx]
test edx, edx
je 0x10015def
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x10015e06
mov eax, dword [eax]
test eax, eax
je 0x10015e06
mov eax, dword [eax]
test eax, eax
je 0x10015e06
mov eax, dword [eax]
jmp 0x10015e08
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp edi, eax
je 0x10015e2a
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.1000bb10
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov ecx, dword [eax + ecx*4]
call fcn.1000b2d0
add dword [esi + 0x2a0], 0xffffffff
jne 0x10015e63
mov dword [esi + 0x29c], 0
push edi
lea ecx, [ebp - 0x20]
call fcn.1000b3e0
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x10015e89
mov eax, esp
mov dword [eax], 0x100a5f60
mov dword [eax + 4], 1
jmp 0x10015ead
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x10015e9c
mov ecx, dword [esi + 0x278]
jmp 0x10015ea2
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.10013120
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x10015eca
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x50]
call fcn.1000b2d0
cmp dword [0x100afbac], 0
jne 0x10015f0f
push 0x4c
call fcn.100205cb
add esp, 4
mov ecx, eax
call fcn.10018990
mov edi, eax
xor eax, eax
mov ecx, edi
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x10015f0f
test edi, edi
je 0x10015f0f
lea ecx, [edi + 0x34]
call fcn.1000b590
push edi
call fcn.100205b5
add esp, 4
mov eax, dword [0x100afbac]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x20]
jl 0x10015f39
cmp dword [ebp - 0xc], 8
push 2
cmovae eax, dword [ebp - 0x20]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x10015f49
cmp dword [ebp - 0xc], 8
push ebx
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.1000b2d0
jmp 0x10015f86
lea eax, [esi + 4]
push eax
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10015f86
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x10015fed
lea ecx, [ebp - 0x50]
mov byte [esi], 0
call fcn.1000b3c0
mov ebx, eax
lea edi, [esi + 0x278]
cmp edi, ebx
je 0x10015fe0
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10015fb9
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.1000c440
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x10015fd1
mov eax, dword [edi]
jmp 0x10015fd3
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.1000bc30
lea ecx, [ebp - 0x50]
call fcn.1000b2d0
jmp 0x10015dab
lea edi, [esi + 0x30]
test edi, edi
jne 0x10015ff8
xor ebx, ebx
jmp 0x10016016
cmp word [edi], 0
jne 0x10016002
xor ebx, ebx
jmp 0x10016016
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10016007
sub ebx, ecx
sar ebx, 1
lea ecx, [ebp - 0x38]
call fcn.1000b3c0
test ebx, ebx
jne 0x10016037
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax], cx
jmp 0x10016041
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.1000ba10
push 1
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.10011140
cmp eax, 0xffffffff
je 0x10016068
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x38]
call fcn.1000c520
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.10012f60
push eax
lea ecx, [ebp - 0x20]
call fcn.1000b3e0
lea ecx, [ebp - 0x50]
call fcn.1000b2d0
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
push 1
push 0x100a6394
push dword [ebp - 0x10]
cmp ebx, 8
cmovae eax, dword [ebp - 0x20]
push eax
call fcn.1000ce90
add esp, 0x10
test eax, eax
je 0x100160d7
push 2
push 0x100a6398
push dword [ebp - 0x10]
cmp ebx, 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call fcn.1000ce90
add esp, 0x10
test eax, eax
jne 0x100160d3
test byte [esi + 0x274], 4
je 0x100160d7
xor bl, bl
jmp 0x100160d9
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
test bl, bl
je 0x100160f2
lea ecx, [ebp - 0x38]
call fcn.1000b2d0
jmp 0x10015dab
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x1001611f
cmp word [edi], 0
jne 0x10016107
xor edi, edi
jmp 0x1001611f
lea edx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10016110
sub edi, edx
sar edi, 1
lea eax, [ebp - 0x50]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.10013120
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x10016142
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x50]
call fcn.1000b2d0
test byte [esi + 4], 0x10
je 0x1001618a
cmp byte [esi + 0x270], 0
je 0x10016181
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x10016181
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x290]
call fcn.100161e0
test byte [esi + 0x274], 2
jmp 0x10016191
test byte [esi + 0x274], 1
jne 0x100161aa
lea ecx, [ebp - 0x38]
call fcn.1000b2d0
jmp 0x10015dab
mov ecx, dword [ebp - 0x54]
call fcn.1000b3c0
jmp 0x100161be
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
call fcn.1000b3e0
lea ecx, [ebp - 0x38]
call fcn.1000b2d0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret 4