Function at 0x10050f30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095b7c
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 0x18]
push 8
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
call fcn.10062ca1
add esp, 4
test eax, eax
jne 0x10050fc1
call fcn.10061d21
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x308]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x308]
mov dword [eax], ecx
push esi
mov dword [ebp - 4], 0
call fcn.10051990
xor edi, edi
cmp dword [ebp - 0x2f8], edi
je 0x100513ca
lea ecx, [ecx]
push ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x308]
call fcn.10051f70
mov ecx, eax
call fcn.10052110
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x1005102d
xor eax, eax
jmp 0x1005102f
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x8c], cx
lea ecx, [ebp - 0x8c]
push eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
call fcn.1004b130
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x2f8]
dec eax
mov edx, dword [ebp - 0x300]
add ecx, eax
mov eax, dword [ebp - 0x304]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
cmp dword [esi + 0x14], 8
jb 0x10051097
push dword [esi]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x8c]
mov word [esi], ax
mov ecx, 0
dec dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x2fc]
cmove eax, ecx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2fc], eax
call fcn.1004bd60
push ebx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.1004be20
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], 8
jb 0x100510fa
push dword [ebp - 0x44]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x2f4]
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005137f
cmp word [ebp - 0x2c8], 0x2e
je 0x10051224
test byte [ebp - 0x2f4], 0x10
jne 0x10051224
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
push ecx
lea edx, [ebp - 0x8c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.1004bd60
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.1004bea0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x74]
cmp eax, esi
je 0x100511b2
cmp dword [ebp - 0x60], 8
jb 0x10051195
push dword [ebp - 0x74]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.1004b9f0
cmp dword [ebp - 0x30], 8
jb 0x100511c3
push dword [ebp - 0x44]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x100511f2
push dword [ebp - 0xa4]
call fcn.1000a3a0
add esp, 4
push dword [ebp - 0x30c]
lea eax, [ebp - 0x74]
push eax
call dword [ebp - 0x310]
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
mov eax, 1
cmovne edi, eax
cmp dword [ebp - 0x60], 8
jb 0x10051224
push dword [ebp - 0x74]
call fcn.1000a3a0
add esp, 4
lea eax, [ebp - 0x2f4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10051378
cmp word [ebp - 0x2c8], 0x2e
je 0x10051224
test byte [ebp - 0x2f4], 0x10
jne 0x10051224
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push ecx
lea edx, [ebp - 0x8c]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa4]
call fcn.1004bd60
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.1004bea0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x10051305
cmp dword [ebp - 0x18], 8
jb 0x100512a9
push dword [ebp - 0x2c]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [esi + 0x14], 8
jae 0x100512db
mov eax, dword [esi + 0x10]
inc eax
je 0x100512e6
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.100624b0
add esp, 0xc
jmp 0x100512e6
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x30], 8
jb 0x10051316
push dword [ebp - 0x44]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x10051345
push dword [ebp - 0xa4]
call fcn.1000a3a0
add esp, 4
push dword [ebp - 0x30c]
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x310]
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
mov eax, 1
cmovne edi, eax
cmp dword [ebp - 0x18], 8
jb 0x10051224
push dword [ebp - 0x2c]
jmp 0x1005121c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x48], 8
jb 0x10051390
push dword [ebp - 0x5c]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x78], 8
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 7
jb 0x100513b7
push dword [ebp - 0x8c]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x2f8], 0
mov ebx, dword [ebp - 0x314]
jne 0x10051000
lea ecx, [ebp - 0x308]
call fcn.10051a50
push dword [ebp - 0x308]
call fcn.1000a3a0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006249d
mov esp, ebp
pop ebp
ret 0x1c