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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e996
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x5c1334]
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 - 0x328], ecx
mov dword [ebp - 0x32c], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, edx
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4668a2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0043e6f0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
call fcn.004415b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x4668ee
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4668e2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0043e6f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x466934
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46692a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46692a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00441ee0
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043e6f0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 3
jb 0x4669af
cmp edx, 8
lea esi, [ebp - 0x40]
push 6
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 3]
push 0x596ed4
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 0x4669cd
push 3
push 0x596ed4
mov byte [ebp - 0x324], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x324]
push 3
call fcn.0043df50
push 0x250
lea eax, [ebp - 0x320]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x320]
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 - 0x324], esi
cmp esi, 0xffffffff
jne 0x466aa1
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x466a4c
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466a42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466a42
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x466a88
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466a7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466a7e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
jmp 0x4671e8
mov ebx, dword [ebp + 8]
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x596edc
lea eax, [ebp - 0x2f4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466ae6
test dx, dx
je 0x466ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466ae6
add eax, 4
add ecx, 4
test dx, dx
jne 0x466ac0
xor eax, eax
jmp 0x466aeb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4671b8
mov ecx, 0x596ee0
lea eax, [ebp - 0x2f4]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466b26
test dx, dx
je 0x466b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x466b00
xor eax, eax
jmp 0x466b2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4671b8
mov eax, dword [ebp - 0x320]
and eax, 0x10
je 0x466c7a
test bl, bl
je 0x466c7a
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0043e6f0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 7
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466b90
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 0x466be2
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
lea eax, [ebp - 0x2f4]
push eax
lea edi, [edx + ecx]
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 - 0x324]
jmp 0x466c00
push ecx
lea eax, [ebp - 0x2f4]
mov byte [ebp - 0x338], 0
push eax
push dword [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0043df50
lea ecx, [ebp - 0x58]
call fcn.00441ee0
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0046b6c0
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov ebx, dword [ebp + 8]
cmovae edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x328]
push ebx
call fcn.00466840
mov byte [ebp - 4], 5
add esp, 0x10
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4671b8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466c6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466924
push edx
push ecx
call fcn.005283f2
add esp, 8
jmp 0x4671b8
test eax, eax
jne 0x4671b8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x334], eax
cmp ecx, eax
je 0x4671b8
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 8
cmp eax, ecx
je 0x466ce4
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x466cd5
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0xa0]
push eax
call fcn.0043e6f0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0043e6f0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 0xb
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466d26
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 0x466d72
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp - 0x2f4]
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 0x466d90
push ecx
lea eax, [ebp - 0x2f4]
mov byte [ebp - 0x33c], 0
push eax
push dword [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043df50
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0xa0]
mov edi, dword [ebp - 0xa0]
cmp esi, 8
mov ecx, 0x596ed4
cmovae eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466dd6
test dx, dx
je 0x466dd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466dd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x466db0
xor eax, eax
jmp 0x466ddb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4670de
cmp esi, 8
lea eax, [ebp - 0xa0]
mov ecx, 0x596ee8
cmovae eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466e1a
test dx, dx
je 0x466e16
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466e1a
add eax, 4
add ecx, 4
test dx, dx
jne 0x466df4
xor eax, eax
jmp 0x466e1f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4670de
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
push dword [ebp - 0x90]
cmp esi, 8
lea ecx, [ebp - 0x70]
cmovae eax, edi
push eax
call fcn.0043e6f0
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x70]
mov edi, dword [ebp - 0x5c]
cmp edi, 8
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x60]
cmovae esi, ebx
test edx, edx
je 0x466e92
mov ecx, edx
mov eax, esi
nop dword [eax + eax]
cmp word [eax], 0x2e
je 0x466ff9
add eax, 2
sub ecx, 1
jne 0x466e80
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], cx
cmp edx, eax
jb 0x46720c
mov ecx, edx
sub ecx, eax
cmp ecx, edx
cmovb edx, ecx
cmp edi, 8
lea ecx, [ebp - 0x70]
cmovae ecx, ebx
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0043e6f0
or dword [ebp - 0x32c], 1
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0xa8]
cmovae eax, dword [ebp - 0xb8]
push eax
call fcn.0043e6f0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x466f4e
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466f44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466924
push edx
push ecx
call fcn.005283f2
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]
mov edx, eax
mov dword [ebp - 0xc0], 0
xor eax, eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov ecx, edx
mov byte [ebp - 4], 0xf
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466f90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.0043e6f0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0xd0]
mov edi, dword [ebp - 0xbc]
cmovae eax, dword [ebp - 0x70]
cmp edi, 8
mov esi, dword [ebp - 0xd0]
cmovae ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x46700a
test dx, dx
je 0x466ff5
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x46700a
add ecx, 4
add eax, 4
test dx, dx
jne 0x466fd3
xor eax, eax
jmp 0x46700f
test eax, eax
je 0x466e92
sub eax, esi
sar eax, 1
jmp 0x466e95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x467062
mov ebx, dword [ebp - 0x328]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
je 0x467056
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x340], ecx
mov word [ecx], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
cmp ecx, eax
je 0x467050
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043e6f0
add dword [ebx + 4], 0x18
jmp 0x467062
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.00461f50
mov byte [ebp - 4], 0xd
cmp edi, 8
jb 0x46709a
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x467090
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466924
push ecx
push esi
call fcn.005283f2
add esp, 8
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x467133
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4670d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466924
push edx
push ecx
call fcn.005283f2
add esp, 8
jmp 0x467133
mov ebx, dword [ebp - 0x328]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
je 0x467127
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x340], ecx
mov word [ecx], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x12
cmp ecx, eax
je 0x467121
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043e6f0
add dword [ebx + 4], 0x18
jmp 0x467133
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.00461f50
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x467171
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467167
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466924
push edx
push ecx
call fcn.005283f2
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
call fcn.0043eb00
mov ecx, dword [ebp - 0x330]
add ecx, 0x18
mov dword [ebp - 0x330], ecx
cmp ecx, dword [ebp - 0x334]
jne 0x466ca0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x324]
lea eax, [ebp - 0x320]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x466ab0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x88]
call fcn.0043eb00
lea ecx, [ebp - 0x40]
call fcn.0043eb00
lea ecx, [ebp + 0xc]
call fcn.00462d10
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.00528802
mov esp, ebp
pop ebp
ret
call fcn.00449fe0
int3