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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ae82
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5bc324]
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 - 0x310], ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, edx
mov dword [ebp - 4], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466610
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0043e6b0
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00441560
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x46665f
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x466653
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0043e6b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x4666a2
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466698
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466698
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00441e90
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043e6b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 3
jb 0x466717
cmp edx, 8
lea esi, [ebp - 0x40]
push 6
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 3]
push 0x592c04
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x466735
push 3
push 0x592c04
mov byte [ebp - 0x30c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30c]
push 3
call fcn.0043df10
push 0x250
lea eax, [ebp - 0x308]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x308]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x30c], esi
cmp esi, 0xffffffff
je 0x466d20
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
mov ecx, 0x592c0c
lea eax, [ebp - 0x2dc]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4667b6
test dx, dx
je 0x4667b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4667b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x466790
xor eax, eax
jmp 0x4667bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x466d03
mov ecx, 0x592c10
lea eax, [ebp - 0x2dc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4667f6
test dx, dx
je 0x4667f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4667f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4667d0
xor eax, eax
jmp 0x4667fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x466d03
mov eax, dword [ebp - 0x308]
and eax, 0x10
je 0x466937
test bl, bl
je 0x466937
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0043e6b0
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 6
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466856
mov ebx, dword [ebp - 0x44]
sub ecx, edx
mov edx, dword [ebp - 0x48]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x4668a8
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
lea eax, [ebp - 0x2dc]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x48], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x30c]
jmp 0x4668c6
push ecx
lea eax, [ebp - 0x2dc]
mov byte [ebp - 0x314], 0
push eax
push dword [ebp - 0x314]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0043df10
lea ecx, [ebp - 0x58]
call fcn.00441e90
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov ebx, dword [ebp + 8]
cmovae edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x310]
push 0x592c04
push ebx
call fcn.004665c0
mov byte [ebp - 4], 4
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x466d03
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466928
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466692
push edx
push ecx
call fcn.0052365a
add esp, 8
jmp 0x466d03
test eax, eax
jne 0x466d03
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0043e6b0
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466975
mov ebx, dword [ebp - 0x14]
sub ecx, edx
mov edx, dword [ebp - 0x18]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x4669c1
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp - 0x2dc]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x18], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4669df
push ecx
lea eax, [ebp - 0x2dc]
mov byte [ebp - 0x318], 0
push eax
push dword [ebp - 0x318]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043df10
mov ecx, 0x592c04
mov eax, ecx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466a0c
test dx, dx
je 0x466a08
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466a0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4669e6
xor eax, eax
jmp 0x466a11
sbb eax, eax
or eax, 1
test eax, eax
je 0x466c67
mov ecx, 0x592c18
mov eax, 0x592c04
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466a49
test dx, dx
je 0x466a45
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466a49
add eax, 4
add ecx, 4
test dx, dx
jne 0x466a23
xor eax, eax
jmp 0x466a4e
sbb eax, eax
or eax, 1
test eax, eax
je 0x466c67
push 0x592c04
lea ecx, [ebp - 0xa0]
call fcn.0043e1b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x90]
sub esp, 8
call fcn.00446b10
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044a080
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
cmp ecx, eax
je 0x466ab8
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x466aa9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0043e6b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x466afc
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466af2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466692
push edx
push ecx
call fcn.0052365a
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x88]
call fcn.0043e1b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0x88]
mov edi, dword [ebp - 0x74]
cmovae eax, dword [ebp - 0xa0]
cmp edi, 8
mov esi, dword [ebp - 0x88]
cmovae ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x466b6d
test dx, dx
je 0x466b69
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x466b6d
add ecx, 4
add eax, 4
test dx, dx
jne 0x466b47
xor eax, eax
jmp 0x466b72
sbb eax, eax
or eax, 1
test eax, eax
jne 0x466bce
mov ebx, dword [ebp - 0x310]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
je 0x466bb9
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x31c], ecx
mov word [ecx], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
cmp ecx, eax
je 0x466bb3
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043e6b0
add dword [ebx + 4], 0x18
jmp 0x466bc5
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.00461330
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x74]
mov byte [ebp - 4], 9
cmp edi, 8
jb 0x466c06
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x466bfc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466692
push ecx
push esi
call fcn.0052365a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x466cbc
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466c5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466692
push edx
push ecx
call fcn.0052365a
add esp, 8
jmp 0x466cbc
mov ebx, dword [ebp - 0x310]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
je 0x466cb0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x31c], ecx
mov word [ecx], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
cmp ecx, eax
je 0x466caa
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043e6b0
add dword [ebx + 4], 0x18
jmp 0x466cbc
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.00461330
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x466cfa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466cf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466692
push edx
push ecx
call fcn.0052365a
add esp, 8
mov esi, dword [ebp - 0x30c]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x308]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x466780
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x466d5c
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466d52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466d52
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x466d98
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466d8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466d8e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
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.00523a6a
mov esp, ebp
pop ebp
ret