Function at 0x534dc0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.005dfa60
mov eax, dword [0x6a704c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x534fc6
test ebx, ebx
je 0x534fc6
call fcn.005ee911
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x53504c
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x534e10
sub esi, ecx
je 0x53503f
cmp esi, 0x7ffffffc
ja 0x53503f
push 0x354
call fcn.005ee808
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x534e4e
call fcn.005ee911
mov dword [eax], 0xc
jmp 0x534fd1
push 0x354
push 0
push eax
call fcn.005e1a80
add esp, 0xc
mov dword [ebp - 8], 0xfde9
lea ebx, [esi + 1]
push 0
push 0
push ebx
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x534f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x534eb9
push 0
push 0
push ebx
push dword [ebp - 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
test eax, eax
jg 0x534f90
lea eax, [ebx*2 + 4]
mov dword [ebp - 0x10], ebx
call fcn.006083d0
mov eax, esp
xor ecx, ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x534fe7
mov edx, dword [ebp - 0xc]
cmp ebx, 0x20
jb 0x534f74
lea eax, [eax + esi*2]
mov dword [ebp - 0x14], eax
lea eax, [esi + edx]
mov esi, esp
cmp esi, eax
ja 0x534efb
cmp dword [ebp - 0x14], edx
jae 0x534f80
mov eax, ebx
and eax, 0xffffffe0
mov dword [ebp - 0x18], eax
lea eax, [edx + 0x10]
lea edx, [esi + 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
movq xmm0, qword [eax - 0x10]
lea esi, [esi + 0x40]
punpcklbw xmm0, xmm0
lea eax, [eax + 0x20]
psraw xmm0, 8
add ecx, 0x20
movups xmmword [esi - 0x60], xmm0
movq xmm0, qword [eax - 0x28]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [esi - 0x50], xmm0
movq xmm0, qword [eax - 0x20]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [esi - 0x40], xmm0
movq xmm0, qword [eax - 0x18]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [esi - 0x30], xmm0
cmp ecx, dword [ebp - 0x18]
jb 0x534f12
mov esi, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
jae 0x534fea
jmp 0x534f80
mov esi, dword [ebp - 8]
nop word [eax + eax]
movsx ax, byte [ecx + edx]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x534f80
jmp 0x534fea
lea eax, [eax*2 + 4]
call fcn.006083d0
mov eax, dword [ebp - 0x10]
mov esi, esp
push eax
push esi
push ebx
push dword [ebp - 0xc]
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x534fea
push dword [edi]
call fcn.005e4cbe
add esp, 4
mov dword [edi], 0
call fcn.005ee911
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df097
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
dec eax
lea ecx, [esi + eax*2]
movzx eax, word [ecx - 2]
cmp eax, 0x2a
je 0x53501d
cmp eax, 0x2f
je 0x535017
cmp eax, 0x5c
je 0x535017
mov eax, dword [0x698bd0]
mov dword [ecx], eax
mov ax, word [0x698bd4]
mov word [ecx + 4], ax
jmp 0x53501d
mov dword [ecx], 0x2a
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi]
mov dword [ecx + 0x250], eax
mov eax, dword [edi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x535061
push eax
jmp 0x534fb8
call fcn.005ee911
mov dword [eax], 2
jmp 0x534fd1
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x534fd1
mov eax, dword [edi]
xor esi, esi
cmp word [eax + 0x2c], si
lea ebx, [eax + 0x2c]
je 0x535080
nop
cmp esi, 0xff
jae 0x535080
inc esi
cmp word [ebx + esi*2], 0
jne 0x535070
push 0
push 0
push 0x100
add eax, 0x254
inc esi
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5350c1
xor edx, edx
test esi, esi
je 0x5350c1
nop dword [eax]
mov ecx, dword [edi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, esi
jb 0x5350b0
mov eax, dword [edi]
mov byte [eax + 0x353], 0
mov eax, dword [edi]
add eax, 0x254
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df097
mov esp, ebp
pop ebp
ret