Function at 0x507690
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x61f473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x6c
mov dword [esp + 0x38], ebx
call fcn.005f6c5c
add esp, 4
mov dword [esp + 0x20], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x29c], esi
je 0x5076d9
mov ecx, eax
call fcn.00484d10
jmp 0x5076db
xor eax, eax
or edi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x29c], edi
mov dword [esp + 0x30], eax
call fcn.00484e50
mov eax, dword [0x6ed074]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x58
push 0x6bc090
push ecx
call fcn.005f368b
mov eax, dword [ebx + 0x1c]
lea ebp, [ebx + 0x14]
add esp, 0xc
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
push eax
call fcn.004ad280
push 0x6c
call fcn.005f6c5c
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov dword [esp + 0x29c], 1
je 0x507744
mov ecx, eax
call fcn.00484d10
mov esi, eax
mov ecx, esi
mov dword [esp + 0x29c], edi
mov dword [esi + 0x68], 2
call fcn.00484e50
mov eax, dword [0x6ed070]
lea ecx, [esi + 0x58]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
mov edi, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea edx, [edi + 1]
push 0xffffffffffffffff
push edx
call fcn.0041ff40
mov eax, dword [ebp + 4]
mov dword [eax + edi*4], esi
mov al, byte [ebx + 4]
test al, al
je 0x507a72
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x28], di
mov eax, dword [ebx + 8]
mov dword [esp + 0x29c], 2
cmp eax, edi
jne 0x5077b7
lea eax, [ebx + 0xc]
mov edx, 0x6d668c
test edx, edx
je 0x507897
cmp eax, edi
je 0x507897
push eax
lea ecx, [esp + 0x18]
call fcn.0040e020
lea ecx, [esp + 0x24]
mov byte [esp + 0x29c], 3
call fcn.00401070
push 0x6d668c
lea ecx, [esp + 0x3c]
call fcn.00402350
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 4
cmp eax, edi
jne 0x507809
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x40]
push eax
call fcn.005de123
lea esi, [eax + esi + 2]
lea ebx, [esi + esi]
push ebx
call fcn.005f6c5c
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x24], edi
je 0x50786f
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
call fcn.004023d0
push eax
lea ecx, [esp + 0x3c]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005de123
add esp, 0x14
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], 3
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 2
call fcn.00401070
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp ecx, edi
mov eax, ecx
jne 0x5078a1
lea eax, [esp + 0x28]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
je 0x507a5e
lea eax, [esp + 0x70]
push 0x5f
push eax
call fcn.005de073
mov esi, eax
add esp, 8
cmp esi, edi
je 0x507a43
mov cx, word [esi + 2]
add esi, 2
push ecx
call fcn.005e0561
add esp, 4
test eax, eax
je 0x507a43
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x1c], di
call fcn.004023e0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 5
cmp eax, edi
jne 0x507918
lea eax, [esp + 0x18]
push 0x2e
push eax
call fcn.005de61b
add esp, 8
cmp eax, edi
je 0x507a2e
mov word [eax], di
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x50793a
lea eax, [esp + 0x18]
push eax
call fcn.005dfbac
mov ebx, eax
add esp, 4
cmp ebx, 2
jle 0x507a2c
push 0x6c
call fcn.005f6c5c
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x29c], 6
je 0x507977
mov ecx, eax
call fcn.00484d10
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x507983
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + 0x29c], 5
mov dword [edi + 0x68], ebx
call fcn.00484e50
mov eax, dword [esp + 0x34]
mov esi, 2
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
jle 0x5079ba
mov eax, dword [eax + 0x18]
add eax, 8
mov edx, dword [eax]
cmp ebx, dword [edx + 0x68]
jl 0x5079ba
inc esi
add eax, 4
cmp esi, ecx
jl 0x5079ab
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
cmp esi, ebx
jl 0x5079d0
lea eax, [esi + 1]
mov ecx, ebp
push eax
call fcn.0041ff40
jmp 0x507a12
lea ecx, [ebx + 1]
push ecx
mov ecx, ebp
call fcn.0041ff40
mov eax, dword [ebp + 4]
mov edx, esi
shl edx, 0x1e
sub edx, esi
lea edi, [esi*4]
add edx, ebx
shl edx, 2
push edx
lea ecx, [edi + eax]
lea edx, [eax + esi*4 + 4]
push ecx
push edx
call fcn.005df1c0
mov eax, dword [ebp + 4]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [eax], 0
xor ecx, ecx
lea eax, [esi*4]
mov edx, dword [ebp + 4]
add eax, 4
mov dword [edx + eax - 4], edi
mov edx, ecx
dec ecx
test edx, edx
jne 0x507a1b
xor edi, edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 2
call fcn.00401070
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5078bc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x24]
mov dword [esp + 0x29c], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret