Function at 0x104ddab
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x1055908]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0xa7c], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
push 0x800
push edi
mov dword [ebp - 0xa70], 1
mov dword [ebp - 0xa6c], 0x400
mov dword [ebp - 0xa74], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xa78], eax
cmp eax, edi
jne 0x104de14
mov dword [ebp - 0xa70], 0x8007000e
jmp 0x104e0c0
xor ecx, ecx
push esi
mov word [eax], cx
mov esi, dword [ebx]
mov dword [ebp - 0xa68], eax
jmp 0x104e034
mov eax, 0x100
push eax
lea ecx, [ebp - 0x814]
push ecx
push eax
lea ecx, [ebp - 0x614]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp eax, 0xffffffff
je 0x104df9c
mov ecx, 0x101768c
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104dea1
cmp dx, di
je 0x104de9d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104dea1
add eax, 4
add ecx, 4
cmp dx, di
jne 0x104de7b
xor eax, eax
jmp 0x104dea6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x104df7f
mov ecx, 0x1007918
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104dedf
cmp dx, di
je 0x104dedb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104dedf
add eax, 4
add ecx, 4
cmp dx, di
jne 0x104deb9
xor eax, eax
jmp 0x104dee4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x104df7f
push 0x1008298
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll__wmakepath_s
add esp, 0x18
push edi
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
call fcn.0104dc28
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x104e08e
cmp dword [ebp - 0xa6c], edi
je 0x104e06c
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x104e03d
add dword [ebp - 0xa68], 2
mov ecx, dword [ebp - 0xa68]
xor eax, eax
dec dword [ebp - 0xa6c]
mov word [ecx], ax
lea eax, [ebp - 0xa64]
push eax
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x104de70
jmp 0x104e018
push 0x2a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x104e018
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x104e018
push edi
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0xa68]
push eax
push esi
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
call fcn.0104dc28
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x104e0a3
cmp dword [ebp - 0xa6c], edi
je 0x104e078
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x104e03d
add dword [ebp - 0xa68], 2
mov ecx, dword [ebp - 0xa68]
xor eax, eax
dec dword [ebp - 0xa6c]
mov word [ecx], ax
cmp dword [ebp + 0xc], edi
je 0x104e03d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104e022
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x104de27
mov eax, dword [ebx]
cmp eax, edi
je 0x104e054
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], edi
cmp dword [ebp - 0xa74], edi
je 0x104e084
mov eax, dword [ebp - 0xa78]
mov dword [ebx], eax
mov dword [ebp - 0xa78], edi
jmp 0x104e08e
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x104e08e
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x104e0a3
mov dword [ebp - 0xa70], 0x80070002
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x104e0a3
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0xa78], edi
je 0x104e0c0
push dword [ebp - 0xa78]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa70]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101ca75
leave
ret 8