Function at 0x40d2b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a9c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0xc44], esi
mov edi, ecx
mov dword [ebp - 0xc48], edi
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0xc4c], eax
lea eax, [ebp - 0x688]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x480]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x688]
push 0x104
push eax
call edi
push dword [ebp - 0xc48]
lea eax, [ebp - 0x480]
push 0x104
push eax
call edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x480]
push str..
push 0x104
push eax
call edi
add esp, 0x3c
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc54], eax
cmp eax, 0xffffffff
je 0x40d8fd
test byte [ebp - 0x904], 0x10
je 0x40d3e3
cmp word [ebp - 0x8d8], 0x2e
je 0x40d8d6
push dword [ebp - 0xc48]
lea eax, [ebp - 0x278]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x41f638
lea eax, [ebp - 0x278]
push 0x104
push eax
call edi
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x278]
push 0x104
push eax
call edi
add esp, 0x24
jmp 0x40d8d6
push dword [ebp - 0xc4c]
lea eax, [ebp - 0x8d8]
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40d8d6
push 0x40
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x70]
movq qword [ebp - 0x1f], xmm0
push 0
push eax
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x17], 0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [ebp - 0x174]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x8d8]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40d4a3
cmp edi, 0x104
jg 0x40d4a3
push 0x104
lea eax, [ebp - 0x174]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x174]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x8d8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
mov dword [ebp - 0x68c], 0
xor edi, edi
movq qword [ebp - 0x694], xmm0
xor eax, eax
mov dword [ebp - 0x694], edi
mov dword [ebp - 0x690], edi
mov dword [ebp - 0xc50], eax
mov dword [ebp - 0x68c], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc90]
push 1
push 0x420210
mov dword [ebp - 0xc7c], 0xf
mov dword [ebp - 0xc80], eax
mov byte [ebp - 0xc90], al
call fcn.004098a0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x174], 0
mov dword [ebp - 0xc64], 0xf
mov dword [ebp - 0xc68], edi
mov byte [ebp - 0xc78], 0
jne 0x40d527
xor eax, eax
jmp 0x40d539
lea eax, [ebp - 0x174]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d530
sub eax, edx
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0xc78]
call fcn.004098a0
lea eax, [ebp - 0xc90]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0xc78]
lea ecx, [ebp - 0xc60]
call fcn.0040d920
lea ecx, [ebp - 0x694]
add esp, 4
cmp ecx, eax
je 0x40d5a9
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x690], ecx
mov ecx, dword [eax + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x694], edi
mov dword [ebp - 0xc50], ecx
mov dword [ebp - 0x68c], ecx
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc60]
test ecx, ecx
je 0x40d612
push dword [ebp - 0xc40]
mov edx, dword [ebp - 0xc5c]
push ecx
call fcn.0040aee0
mov ecx, dword [ebp - 0xc58]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xc60]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040a170
mov esi, dword [ebp - 0xc44]
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc58], 0
mov eax, dword [ebp - 0xc64]
cmp eax, 0x10
jb 0x40d62a
inc eax
push eax
push dword [ebp - 0xc78]
call fcn.0040a320
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc7c]
mov dword [ebp - 0xc64], 0xf
mov dword [ebp - 0xc68], 0
mov byte [ebp - 0xc78], 0
cmp eax, 0x10
jb 0x40d661
inc eax
push eax
push dword [ebp - 0xc90]
call fcn.0040a320
mov ecx, dword [ebp - 0x690]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40d6ee
lea eax, [eax + eax*2]
lea eax, [eax - 3]
cmp dword [edi + eax*8 + 0x14], 0x10
lea eax, [edi + eax*8]
jb 0x40d691
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x30]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc40], eax
test eax, eax
je 0x40d6ee
cmp eax, 0x20
jg 0x40d6ee
push 0x40
lea eax, [ebp - 0x70]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push dword [ebp - 0xc40]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0xc4c]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40d870
push 0x338
push eax
lea eax, [ebp - 0xc3c]
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x688]
push eax
push 0x41f7a8
lea eax, [ebp - 0xc3c]
push 0x104
push eax
call fcn.0040cd10
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0xa34]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x96c]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x38
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x6b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x698]
push eax
movzx eax, word [ebp - 0x69a]
push eax
movzx eax, word [ebp - 0x69c]
push eax
movzx eax, word [ebp - 0x69e]
push eax
movzx eax, word [ebp - 0x6a2]
push eax
movzx eax, word [ebp - 0x6a4]
push eax
push 0x420214
lea eax, [ebp - 0x92c]
push 0x14
push eax
call fcn.0040cd10
mov ecx, dword [esi + 4]
lea eax, [ebp - 0xc3c]
add esp, 0x24
cmp eax, ecx
jae 0x40d83a
mov eax, dword [esi]
lea edx, [ebp - 0xc3c]
cmp eax, edx
ja 0x40d83a
mov ecx, edx
sub ecx, eax
mov eax, 0x13e22cbd
imul ecx
mov ecx, dword [esi + 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc40], eax
cmp ecx, dword [esi + 8]
jne 0x40d825
push ecx
mov ecx, esi
call fcn.0040dc00
mov eax, dword [ebp - 0xc40]
mov edx, dword [esi + 4]
imul eax, eax, 0x338
add eax, dword [esi]
test edx, edx
je 0x40d869
mov esi, eax
mov edi, edx
jmp 0x40d856
cmp ecx, dword [esi + 8]
jne 0x40d847
push ecx
mov ecx, esi
call fcn.0040dc00
mov eax, dword [esi + 4]
test eax, eax
je 0x40d869
lea esi, [ebp - 0xc3c]
mov edi, eax
mov ecx, 0xce
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc44]
mov edi, dword [ebp - 0x694]
add dword [esi + 4], 0x338
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40d8d0
push dword [ebp - 0xc40]
mov edx, dword [ebp - 0x690]
push ecx
mov ecx, edi
call fcn.0040aee0
mov ecx, dword [ebp - 0xc50]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.0040a170
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x904]
push eax
push dword [ebp - 0xc54]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d384
push dword [ebp - 0xc54]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret