Function at 0x509760
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6267c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x6c
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
call fcn.005fdccd
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x5097ac
call fcn.00485850
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.00485990
mov eax, dword [0x6f6ce0]
lea ecx, [ebx + 0x58]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
mov edi, dword [esi + 0x1c]
add esi, 0x14
add esp, 0xc
mov ecx, esi
lea edx, [edi + 1]
push 0xffffffffffffffff
push edx
call fcn.00483e30
mov eax, dword [esi + 4]
push 0x6c
mov dword [eax + edi*4], ebx
call fcn.005fdccd
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x509807
call fcn.00485850
mov edi, eax
jmp 0x509809
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [edi + 0x68], 2
call fcn.00485990
mov ecx, dword [0x6f6cdc]
lea edx, [edi + 0x58]
push ecx
push 0x6c5098
push edx
call fcn.005fa6fb
mov ebx, dword [esi + 8]
add esp, 0xc
mov ecx, esi
lea eax, [ebx + 1]
push 0xffffffffffffffff
push eax
call fcn.00483e30
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x38]
mov dword [ecx + ebx*4], edi
mov al, byte [edx + 4]
test al, al
je 0x509961
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], bx
mov eax, dword [edx + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x509873
lea eax, [edx + 0xc]
mov edx, str._sq_.dt
test edx, edx
je 0x509934
cmp eax, ebx
je 0x509934
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e5b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00401070
push str._sq_.dt
lea ecx, [ebp - 0x4c]
call fcn.00402330
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x5098b8
lea eax, [ebp - 0x1c]
mov esi, dword [ebp - 0x44]
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x30], edx
je 0x509919
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x20]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x30]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401070
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
mov eax, ecx
jne 0x50993d
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x4ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
jne 0x509972
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x480]
push 0x5f
push eax
call fcn.005e50eb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x509b09
mov cx, word [esi + 2]
add esi, 2
push ecx
call fcn.005e75e1
add esp, 4
test eax, eax
je 0x509b09
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
call fcn.004023c0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x5099c6
lea eax, [ebp - 0x1c]
push 0x2e
push eax
call fcn.005e569b
add esp, 8
cmp eax, ebx
je 0x509afd
mov word [eax], bx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5099e6
lea eax, [ebp - 0x1c]
push eax
call fcn.005e6c2c
mov esi, eax
add esp, 4
cmp esi, 2
jle 0x509afd
push 0x6c
call fcn.005fdccd
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 7
je 0x509a1d
call fcn.00485850
mov ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x509a22
mov dword [ebp - 0x34], ebx
mov ecx, ebx
mov byte [ebp - 4], 6
mov dword [ecx + 0x68], esi
call fcn.00485990
mov edi, 2
mov ebx, dword [ebp - 0x38]
cmp edi, dword [ebx + 0x1c]
jge 0x509a49
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + edi*4]
cmp esi, dword [eax + 0x68]
jl 0x509a49
inc edi
jmp 0x509a33
mov esi, dword [ebx + 0x1c]
add ebx, 0x14
cmp edi, esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
push 0xffffffffffffffff
jl 0x509a6f
lea ecx, [edi + 1]
push ecx
mov ecx, ebx
call fcn.00483e30
jmp 0x509adf
lea edx, [esi + 1]
mov ecx, ebx
push edx
call fcn.00483e30
mov eax, dword [ebx + 4]
mov ecx, 1
lea eax, [eax + esi*4]
mov edx, ecx
dec ecx
test edx, edx
je 0x509a91
add eax, 4
jmp 0x509a85
mov edx, dword [ebp - 0x40]
mov ecx, edi
mov eax, dword [ebx + 4]
lea esi, [edi*4]
shl ecx, 0x1e
sub ecx, edi
add ecx, edx
lea edx, [esi + eax]
shl ecx, 2
push ecx
mov ecx, dword [ebp - 0x14]
add edi, ecx
push edx
lea edx, [eax + edi*4]
push edx
call fcn.005e6240
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x14]
add esi, eax
add esp, 0xc
xor eax, eax
mov edi, esi
mov edx, ecx
rep stosd dword es:[edi], eax
mov eax, edx
dec edx
test eax, eax
je 0x509adc
add esi, 4
jmp 0x509ad0
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x509af8
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x34]
mov dword [edx + edi*4], eax
inc edi
jmp 0x509adf
mov edi, dword [ebp - 0x24]
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x4ac]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x509972
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x509955