Function at 0x508810
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5333e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x56e100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov byte [ebp - 0x261], al
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
cmp edx, dword [ebp + 8]
je 0x508890
mov eax, dword [ebp - 0x268]
movzx ecx, byte [eax]
push ecx
lea ecx, [ebp - 0x261]
call fcn.00509630
movzx edx, al
test edx, edx
jne 0x508890
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00509ec0
add esp, 8
mov dword [ebp - 0x268], eax
jmp 0x50884e
mov edx, dword [ebp - 0x268]
movsx eax, byte [edx]
cmp eax, 0x3a
jne 0x5088c5
mov ecx, dword [ebp + 8]
add ecx, 1
cmp dword [ebp - 0x268], ecx
je 0x5088c5
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00508540
add esp, 0x10
jmp 0x508ba8
mov ecx, dword [ebp - 0x268]
movzx edx, byte [ecx]
push edx
lea ecx, [ebp - 0x261]
call fcn.00509630
movzx eax, al
test eax, eax
je 0x5088f5
mov ecx, dword [ebp - 0x268]
sub ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp - 0x27c], ecx
jmp 0x5088ff
mov dword [ebp - 0x27c], 0
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x28c], edx
lea ecx, [ebp - 0x2d0]
call fcn.00405df8
push 0
push 0
push 0
lea eax, [ebp - 0x260]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2d0]
push edx
call fcn.00509e70
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
push eax
lea ecx, [ebp - 0x274]
call fcn.004040a2
lea ecx, [ebp - 0x274]
call fcn.00404fca
cmp eax, 0xffffffff
jne 0x508996
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00508540
add esp, 0x10
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x274]
call fcn.00403760
lea ecx, [ebp - 0x2d0]
call fcn.00406aaf
mov eax, dword [ebp - 0x288]
jmp 0x508ba8
mov ecx, dword [ebp + 0x10]
call fcn.00509f50
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x2b8]
call fcn.00401b9f
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x2b8]
push eax
call fcn.00509df0
add esp, 8
mov dword [ebp - 0x270], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x270]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2e
jne 0x508a08
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x270]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x508a08
lea ecx, [ebp - 0x2b8]
call fcn.00402595
jmp 0x508ac8
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x270]
movsx edx, byte [ecx + eax]
cmp edx, 0x2e
jne 0x508a58
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x270]
movsx edx, byte [ecx + eax]
cmp edx, 0x2e
jne 0x508a58
mov eax, 1
shl eax, 1
mov ecx, dword [ebp - 0x270]
movsx edx, byte [ecx + eax]
test edx, edx
jne 0x508a58
lea ecx, [ebp - 0x2b8]
call fcn.00402595
jmp 0x508ac8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x28c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.00508540
add esp, 0x10
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0
je 0x508abd
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x2b8]
call fcn.00402595
lea ecx, [ebp - 0x274]
call fcn.00403760
lea ecx, [ebp - 0x2d0]
call fcn.00406aaf
mov eax, dword [ebp - 0x290]
jmp 0x508ba8
lea ecx, [ebp - 0x2b8]
call fcn.00402595
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x274]
call fcn.00404fca
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5089a4
mov ecx, dword [ebp + 0x10]
call fcn.00509f50
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x284]
jne 0x508b2d
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x274]
call fcn.00403760
lea ecx, [ebp - 0x2d0]
call fcn.00406aaf
mov eax, dword [ebp - 0x294]
jmp 0x508ba8
xor ecx, ecx
mov byte [ebp - 0x269], cl
lea ecx, [ebp - 0x269]
call fcn.005095b0
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp + 0x10]
call fcn.00509910
mov edx, dword [ebp - 0x278]
lea eax, [eax + edx*4]
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x298]
push ecx
push 4
mov edx, dword [ebp - 0x284]
sub edx, dword [ebp - 0x278]
push edx
mov eax, dword [ebp - 0x29c]
push eax
call fcn.00405772
add esp, 0x10
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x274]
call fcn.00403760
lea ecx, [ebp - 0x2d0]
call fcn.00406aaf
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040310c
mov esp, ebp
pop ebp
ret