Function at 0x515e40
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x46c
call fcn.00609610
movsx eax, word [0x675b0c]
movsx ecx, word [0x65c28c]
movsx edx, word [0x65c288]
push ebx
push esi
push edi
push eax
movsx eax, word [0x65c284]
push ecx
push edx
xor ebx, ebx
push eax
lea ecx, [esp + 0x280]
push str.DefTDL__d._d._d._d.dat
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.006097c6
mov eax, dword [0x675b30]
lea edx, [esp + 0x38c]
add esp, 0x18
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x515eb0
lea edi, [esp + 0x374]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x515ec2
mov edx, dword [str.DefTDL_.dat]
mov eax, dword [0x633a3c]
mov ecx, dword [0x633a40]
mov dword [edi], edx
mov dx, word [0x633a44]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x378]
push ecx
mov word [edi + 0xc], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x51609b
xor eax, eax
jmp 0x515f20
mov cl, byte [esp + eax + 0x15c]
mov byte [esp + eax + 0x2c], cl
inc eax
cmp cl, bl
jne 0x515f20
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push 0x2d
push edx
call fcn.00609ce0
mov ecx, eax
add esp, 8
inc ecx
lea edx, [esp + 0x28]
call fcn.00515d00
cmp eax, 1
jne 0x515fa3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x34]
push str._d._d
push edx
call fcn.006097c6
lea eax, [esp + 0x3c]
push eax
call fcn.0060acf2
fstp dword [esp + 0x38]
add esp, 0x14
xor eax, eax
jmp 0x515f90
mov cl, byte [esp + eax + 0x15c]
mov byte [esp + eax + 0x270], cl
inc eax
cmp cl, bl
jne 0x515f90
lea ecx, [esp + 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x51609b
mov edi, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
jmp 0x515fd0
mov cl, byte [esp + eax + 0x160]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x515fd0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push 0x2d
push edx
call fcn.00609ce0
mov ecx, eax
add esp, 8
inc ecx
lea edx, [esp + 0x28]
call fcn.00515d00
cmp eax, 1
jne 0x51607f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push str._d._d
push edx
call fcn.006097c6
lea eax, [esp + 0x40]
push eax
call fcn.0060acf2
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 0x14
cmp edx, edi
jg 0x516050
cmp esi, ebp
jg 0x516050
fcom dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x51607d
xor eax, eax
jmp 0x516060
mov cl, byte [esp + eax + 0x160]
mov byte [esp + eax + 0x274], cl
inc eax
cmp cl, bl
jne 0x516060
fstp dword [esp + 0x28]
mov edi, edx
mov ebp, esi
jmp 0x51607f
fstp st(0)
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x515fc3
pop ebp
lea edx, [esp + 0x270]
mov ecx, 0x675b68
call fcn.004ea050
pop edi
pop esi
pop ebx
add esp, 0x46c
ret