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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183028
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x101dd594]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x208
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 0x690], ebx
push eax
movlpd qword [ebp - 0x688], xmm0
call fcn.10150460
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jle 0x100509a5
push 0x2a
push eax
call fcn.101509ed
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x100509a5
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x100509ba
push 0x10195e30
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x100509c8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x464
lea eax, [ebp - 0x67c]
push 0
push eax
call fcn.10150460
mov eax, 0x5c
mov dword [ebp - 0x220], ebx
add esp, 0xc
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10050aaf
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x650]
push 0x104
push eax
call fcn.10160e4d
push eax
call fcn.10032c20
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x10050e5c
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10050b1e
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10050aa7
cmp eax, 0xffffffff
je 0x10050aa7
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov dword [ebp - 0x220], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x688]
mov esi, dword [ebp - 0x684]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x21c], 0
test ecx, ecx
je 0x10050ae3
cmp ecx, 0xffffffff
je 0x10050ae3
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
test ecx, ecx
je 0x10050afe
cmp ecx, 0xffffffff
je 0x10050afe
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
call eax
mov eax, edi
mov edx, esi
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.10128191
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x42c]
push 0x5c
push eax
call fcn.10150895
mov esi, eax
lea eax, [ebp - 0x42c]
push 0x2f
push eax
call fcn.10150895
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x10050b4f
test esi, esi
je 0x10050b6a
lea ecx, [ebp - 0x42c]
test esi, esi
lea eax, [ebp - 0x42c]
cmovne eax, esi
cmp ecx, eax
jb 0x10050b65
xor eax, eax
mov word [ecx], ax
jmp 0x10050b6a
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x684]
mov eax, 1
mov edi, dword [ebp - 0x688]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x68c], esi
mov dword [ebp - 0x680], edi
test eax, eax
je 0x10050c7a
mov ecx, dword [ebp - 0x67c]
shr ecx, 4
and ecx, 1
je 0x10050be4
cmp word [ebp - 0x650], 0x2e
jne 0x10050be4
mov dx, word [ebp - 0x64e]
test dx, dx
je 0x10050bc9
cmp dx, 0x2e
jne 0x10050be4
cmp word [ebp - 0x64c], 0
jne 0x10050be4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10050afe
lea ecx, [ebp - 0x67c]
push ecx
push eax
jmp 0x10050e42
test ecx, ecx
je 0x10050c7a
cmp dword [ebp + 0x10], 0
jne 0x10050c13
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10050afe
lea ecx, [ebp - 0x67c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10050e49
lea eax, [ebp - 0x6a0]
push eax
lea ecx, [ebp - 0x67c]
call fcn.10050fc0
mov ecx, dword [ebp + 0x10]
dec ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x69c]
push eax
call fcn.10050920
add esp, 0xc
mov byte [ebp - 4], 0
add edi, eax
mov dword [ebp - 0x680], edi
adc esi, edx
mov edx, dword [ebp - 0x6a0]
mov dword [ebp - 0x68c], esi
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10050c6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
jmp 0x10050e24
mov ecx, dword [ebp - 0x69c]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x684], ecx
cmp edi, ecx
jne 0x10050d00
mov dword [ebp - 0x684], 0
test eax, eax
je 0x10050cc4
mov edi, dword [ebp - 0x680]
mov ecx, dword [ebp - 0x65c]
add edi, ecx
mov edx, dword [ebp - 0x660]
adc esi, edx
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x68c], esi
jmp 0x10050e24
mov edi, dword [ebp - 0x680]
xorps xmm0, xmm0
movlpd qword [ebp - 0x688], xmm0
mov ecx, dword [ebp - 0x688]
add edi, ecx
mov edx, dword [ebp - 0x684]
adc esi, edx
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x68c], esi
jmp 0x10050e24
mov byte [ebp - 4], 2
mov dword [ebp - 0x694], 0
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10050e6d
mov eax, dword [ecx]
call dword [eax + 0xc]
or ebx, 1
cmp dword [ebp - 0x21c], 0
mov dword [ebp - 0x690], ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x694], esi
je 0x10050d6e
lea eax, [ebp - 0x650]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10050d46
sub eax, edx
lea ecx, [ebp - 0x694]
sar eax, 1
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.10020080
mov esi, dword [ebp - 0x694]
push dword [edi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
and dword [ebp - 0x690], 0xfffffffe
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10050d9c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test ebx, ebx
je 0x10050e03
mov dword [ebp - 0x694], 0
test eax, eax
je 0x10050dd6
mov ecx, dword [ebp - 0x65c]
add dword [ebp - 0x680], ecx
mov esi, dword [ebp - 0x68c]
mov edx, dword [ebp - 0x660]
adc esi, edx
mov dword [ebp - 0x68c], esi
jmp 0x10050e09
mov esi, dword [ebp - 0x68c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x698], xmm0
mov ecx, dword [ebp - 0x698]
add dword [ebp - 0x680], ecx
mov edx, dword [ebp - 0x694]
adc esi, edx
mov dword [ebp - 0x68c], esi
jmp 0x10050e09
mov esi, dword [ebp - 0x68c]
mov ebx, dword [ebp - 0x690]
add edi, 4
cmp edi, dword [ebp - 0x684]
jne 0x10050d00
mov edi, dword [ebp - 0x680]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x10050afe
test eax, eax
je 0x10050ac1
lea eax, [ebp - 0x67c]
push eax
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10050b95
jmp 0x10050abb
mov esi, dword [ebp - 0x684]
mov edi, dword [ebp - 0x688]
jmp 0x10050afe
push 0x80004005
call fcn.10017a40
int3