Function at 0x1002d180
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1025f583
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x102fb070]
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, ecx
mov dword [ebp - 0x288], edi
call fcn.10006250
mov ecx, eax
test ecx, ecx
je 0x1002d469
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1002d473
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x280], eax
push edi
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 0
push str._s
push eax
call fcn.1002de30
mov esi, dword [ebp - 0x280]
lea eax, [ebp - 0x278]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x284], ebx
cmp ebx, 0xffffffff
jne 0x1002d229
xor ebx, ebx
jmp 0x1002d40b
xor ebx, ebx
mov dword [ebp - 0x27c], ebx
test byte [ebp - 0x278], 0x10
jne 0x1002d24b
add ebx, dword [ebp - 0x258]
mov dword [ebp - 0x27c], ebx
jmp 0x1002d3e4
mov ecx, 0x102df248
lea eax, [ebp - 0x24c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002d27c
test dx, dx
je 0x1002d278
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002d27c
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002d256
xor eax, eax
jmp 0x1002d281
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002d3e4
mov ecx, 0x102df0d8
lea eax, [ebp - 0x24c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002d2ba
test dx, dx
je 0x1002d2b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002d2ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002d294
xor eax, eax
jmp 0x1002d2bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002d3e4
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d2e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10006680
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002d306
mov ecx, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0x18]
sub ecx, edx
sar eax, 1
cmp eax, ecx
ja 0x1002d35c
cmp dword [ebp - 0x14], 8
lea ebx, [edx + eax]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae edi, dword [ebp - 0x28]
add eax, eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [edi + edx*2]
push eax
call fcn.100ccba0
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x288]
jmp 0x1002d37a
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 0x28c], 0
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x28]
push eax
call fcn.10008770
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.1002d180
add ebx, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x27c], ebx
cmp edx, 8
jb 0x1002d3d0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d3c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002d47a
push edx
push ecx
call fcn.10053aa5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002d231
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002d44b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1002d47f
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x1002d47f
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
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.10053a94
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005d70
call edx
jmp 0x1002d1dc
call fcn.100d7e3e
call edx
jmp 0x1002d44b