Function at 0x503410
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5b4f
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x290], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
sub esp, 8
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x294], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push eax
call fcn.005dc520
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
push 0x260
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push 0x250
mov esi, eax
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x503579
mov ecx, 1
mov dword [ebp - 0x38], ecx
cmp word [ebp - 0x260], 0x2e
jne 0x503528
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x503558
cmp dx, 0x2e
jne 0x503528
cmp word [ebp - 0x25c], 0
je 0x503558
test ecx, ecx
je 0x503579
mov edx, dword [ebp - 0x28c]
test cl, 1
je 0x50353f
test edx, 0x400
jne 0x503558
test cl, 2
je 0x50354b
test dl, 0x10
je 0x503579
jmp 0x503558
test cl, 4
je 0x503579
test edx, 0x10
jne 0x503579
lea ecx, [ebp - 0x28c]
push ecx
push eax
call ebx
test eax, eax
je 0x50356e
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jmp 0x503502
push dword [ebp - 0x3c]
call esi
or eax, 0xffffffff
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x503716
cmp byte [edi + 8], 0
jne 0x503753
push 1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc260
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x260]
push eax
push 0x624284
push dword [ebp - 0x294]
lea ecx, [ebp - 0x1c]
call fcn.005dc200
mov esi, dword [ebp - 0x28c]
and esi, 0x10
jbe 0x5035fb
push edi
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, dword [ebp - 0x290]
push eax
call fcn.00503410
test al, al
je 0x503750
test byte [edi + 0xc], 0x10
jmp 0x5035ff
test byte [edi + 0xc], 0x20
jne 0x5036e4
push ecx
push dword [edi + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.005d98d0
test al, al
je 0x5036e4
push 4
push 1
push 1
push 1
push 0x624390
lea ecx, [ebp - 0x1c]
call fcn.005daa70
test eax, eax
je 0x50363c
push 4
lea ecx, [ebp - 0x1c]
call fcn.005dad50
push 0
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
call fcn.005dc190
mov ecx, dword [edi + 4]
push eax
call fcn.005bbb80
lea edx, [ebp - 0x28]
mov ebx, eax
lea ecx, [ebp - 0x278]
call fcn.005d0520
push 1
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov ecx, dword [edi + 4]
push eax
push ebx
push dword [edi + 0x10]
call fcn.005ba4f0
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 0x400
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
add dword [edi + 0x18], 1
adc dword [edi + 0x1c], 0
test esi, esi
jne 0x5036de
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
mov eax, dword [ebp - 0x290]
push dword [eax]
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconW]
mov esi, eax
test esi, esi
je 0x5036de
mov ecx, dword [edi + 4]
push esi
push esi
push ebx
push dword [edi + 0x10]
call fcn.005bab80
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x503710
lea ecx, [ebp - 0x28c]
push ecx
push eax
call ebx
test eax, eax
je 0x50375d
lea ecx, [ebp - 0x28c]
call fcn.004011a0
test al, al
mov eax, dword [ebp - 0x3c]
jne 0x503586
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp eax, 0xffffffff
je 0x503720
push eax
call esi
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x503718
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
or eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jmp 0x503716