Function at 0x5dcc60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, esp
mov edi, dword [ebp + 8]
test edi, edi
setne bl
cmp dword [ebp + 0xc], 0
setne bh
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test bl, bh
jne 0x5dcc94
mov dword [eax], 0x16
xor eax, eax
jmp 0x5dcdab
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x5dcdb3
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5dcc8d
mov edx, dword [edi]
lea ecx, [edx + 0x2c]
mov eax, 0xffffffff
nop
lea edi, [eax + 1]
cmp edi, 0xfe
ja 0x5dccd5
cmp word [ecx + eax*2 + 2], 0
mov eax, edi
jne 0x5dccc0
lea eax, [edx + 0x254]
mov dword [esi + 0x1c], edx
lea edx, [edi + 1]
push 0
push 0
push 0x100
push eax
mov dword [esi + 0xc], edx
push edx
push ecx
push 0
push 0xfde9
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov edx, dword [ebp + 8]
jne 0x5dcd9b
xor eax, eax
cmp edi, 3
jb 0x5dcd67
mov eax, dword [esi + 0xc]
and eax, 0xfffffffc
mov dword [esi + 0x18], eax
xor eax, eax
mov ecx, dword [esi + 0x1c]
movzx ebx, byte [ecx + eax*2 + 0x2c]
mov byte [esi + 0x10], bl
mov edi, dword [edx]
movzx ebx, byte [esi + 0x10]
mov byte [edi + eax + 0x254], bl
movzx ebx, byte [ecx + eax*2 + 0x2e]
mov edi, dword [edx]
mov byte [edi + eax + 0x255], bl
movzx ebx, byte [ecx + eax*2 + 0x30]
mov edi, dword [edx]
mov byte [edi + eax + 0x256], bl
movzx ebx, byte [ecx + eax*2 + 0x32]
mov edi, dword [edx]
mov byte [edi + eax + 0x257], bl
add eax, 4
cmp dword [esi + 0x18], eax
jne 0x5dcd20
test byte [esi + 0xc], 3
mov ebx, dword [esi + 0x14]
je 0x5dcd9b
mov ecx, dword [esi + 0xc]
and ecx, 3
nop word cs:[eax + eax]
mov dword [esi + 0xc], ecx
movzx ecx, byte [ebx + eax*2]
mov edi, edx
mov edx, dword [edx]
mov byte [edx + eax + 0x254], cl
mov edx, edi
mov ecx, dword [esi + 0xc]
inc eax
dec ecx
jne 0x5dcd80
mov eax, dword [edx]
mov byte [eax + 0x353], 0
mov eax, 0x254
add eax, dword [edx]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [eax - 0x7ffffffd]
cmp ecx, 0x80000003
ja 0x5dcdde
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 2
jmp 0x5dcc8d
mov dword [esi + 0xc], eax
push 0x354
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x5dce56
mov eax, dword [esi + 0xc]
inc eax
push 0
push 0
mov dword [esi + 0x10], eax
push eax
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x5dce67
mov edx, 0xfde9
lea ecx, [eax*2 + 7]
and ecx, 0xfffffffc
mov ebx, eax
mov eax, ecx
call fcn.00787ee0
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push ebx
push edi
push dword [esi + 0x10]
push dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x5dcf01
mov edi, dword [ebp + 8]
push dword [edi]
jmp 0x5dcf53
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
jmp 0x5dcc8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x5dce8e
push 0
push 0
push dword [esi + 0x10]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x5dce8e
xor edx, edx
jmp 0x5dce19
mov edx, dword [esi + 0xc]
lea eax, [edx*2 + 9]
and eax, 0xfffffffc
call fcn.00787ee0
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
lea eax, [edx + 1]
xor ecx, ecx
cmp edx, 0xf
jb 0x5dcef1
mov ecx, eax
and ecx, 0xfffffff0
xor edx, edx
nop dword [eax + eax]
movq xmm0, qword [ebx + edx]
punpcklbw xmm0, xmm0
movq xmm1, qword [ebx + edx + 8]
punpcklbw xmm1, xmm1
psraw xmm0, 8
psraw xmm1, 8
movdqa xmmword [edi + edx*2], xmm0
movdqa xmmword [edi + edx*2 + 0x10], xmm1
add edx, 0x10
cmp ecx, edx
jne 0x5dcec0
jmp 0x5dcefa
movsx edx, byte [ebx + ecx]
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ecx
jne 0x5dcef1
mov ebx, dword [esi + 0x10]
movzx eax, word [edi + ebx*2 - 4]
cmp eax, 0x2a
je 0x5dcf2d
dec ebx
cmp eax, 0x5c
je 0x5dcf1b
mov ecx, 0x96c64c
cmp eax, 0x2f
jne 0x5dcf20
mov ecx, 0x96c652
lea eax, [edi + ebx*2]
push ecx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
add esp, 8
mov eax, dword [ebp + 8]
push dword [eax]
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi]
mov dword [ecx + 0x250], eax
mov edx, dword [edi]
cmp dword [edx + 0x250], 0xffffffff
jne 0x5dccb7
push edx
call fcn.00786dc0
add esp, 4
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x5dcc87