Function at 0x104ddc8
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 0x104de31
mov dword [ebp - 0xa70], 0x8007000e
jmp 0x104e0dd
xor ecx, ecx
push esi
mov word [eax], cx
mov esi, dword [ebx]
mov dword [ebp - 0xa68], eax
jmp 0x104e051
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 0x104dfb9
mov ecx, 0x101768c
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104debe
cmp dx, di
je 0x104deba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104debe
add eax, 4
add ecx, 4
cmp dx, di
jne 0x104de98
xor eax, eax
jmp 0x104dec3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x104df9c
mov ecx, 0x1007918
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x104defc
cmp dx, di
je 0x104def8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x104defc
add eax, 4
add ecx, 4
cmp dx, di
jne 0x104ded6
xor eax, eax
jmp 0x104df01
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x104df9c
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.0104dc45
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x104e0ab
cmp dword [ebp - 0xa6c], edi
je 0x104e089
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x104e05a
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 0x104de8d
jmp 0x104e035
push 0x2a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x104e035
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x104e035
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.0104dc45
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x104e0c0
cmp dword [ebp - 0xa6c], edi
je 0x104e095
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x104e05a
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 0x104e05a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104e03f
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x104de44
mov eax, dword [ebx]
cmp eax, edi
je 0x104e071
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 0x104e0a1
mov eax, dword [ebp - 0xa78]
mov dword [ebx], eax
mov dword [ebp - 0xa78], edi
jmp 0x104e0ab
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x104e0ab
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x104e0c0
mov dword [ebp - 0xa70], 0x80070002
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x104e0c0
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0xa78], edi
je 0x104e0dd
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