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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x468]
push esi
push edi
push 0x208
mov esi, edx
mov dword [esp + 0x18], ecx
push 0
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
call fcn.004571e0
lea ecx, [esp + 0x47c]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4468f3
movzx eax, word [esi + ecx]
test ax, ax
je 0x4468f3
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4468d5
test edx, edx
lea eax, [ecx - 2]
lea edi, [esp + 0x470]
cmovne eax, ecx
xor ecx, ecx
add edi, 0xfffffffe
mov word [eax], cx
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x446910
mov eax, dword [0x491f90]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446927
lea edi, [esp + 0x470]
sub edx, esi
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446940
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x470]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x446964
mov eax, dword [0x499c38]
mov dword [ecx], eax
mov ax, word [0x499c3c]
mov word [ecx + 4], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x446c80
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x446c4e
mov ecx, 0x498cd8
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4469e6
test dx, dx
je 0x4469e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4469e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4469c0
xor eax, eax
jmp 0x4469eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4469a3
mov ecx, 0x499c40
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446a1e
test dx, dx
je 0x446a1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446a1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4469f8
xor eax, eax
jmp 0x446a23
sbb eax, eax
or eax, 1
test eax, eax
je 0x4469a3
test byte [esp + 0x18], 0x10
push 0x208
push 0
je 0x446b21
lea eax, [esp + 0x680]
push eax
call fcn.004571e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446a53
lea edi, [esp + 0x678]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446a70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x678]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x446a94
mov eax, dword [0x491f90]
lea edx, [esp + 0x44]
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446ab0
lea edi, [esp + 0x678]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446ad0
mov ecx, edx
lea eax, [esp + 0x678]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc]
mov edx, esi
mov ecx, dword [esp + 0x14]
push eax
call fcn.00446880
add esp, 4
test eax, eax
jne 0x4469a3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x270]
push eax
call fcn.004571e0
lea eax, [esp + 0x274]
add esp, 0xc
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x446b5f
movzx ecx, word [esi + eax]
test cx, cx
je 0x446b5f
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x446b41
test edx, edx
lea ecx, [eax - 2]
lea edi, [esp + 0x268]
cmovne ecx, eax
xor eax, eax
add edi, 0xfffffffe
mov word [ecx], ax
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x446b76
mov eax, dword [0x491f90]
mov edx, dword [esp + 0x10]
mov esi, edx
mov dword [edi], eax
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x446b90
lea edi, [esp + 0x268]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x446bb0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x268]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x446bd4
lea edx, [esp + 0x44]
mov dword [edi], eax
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446bf0
lea edi, [esp + 0x268]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446c10
mov ecx, edx
lea eax, [esp + 0x268]
shr ecx, 2
sub esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004466f0
add esp, 0xc
test eax, eax
jne 0x446c80
jmp 0x44699f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0x12
jne 0x446c7a
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x884]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00454e67
mov esp, ebp
pop ebp
ret