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

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0xa7c], eax
push ebx
mov ebx, dword [esp + 0xa88]
lea eax, [esp + 0x464]
push ebp
mov ebp, dword [esp + 0xa94]
push esi
mov esi, dword [esp + 0xa94]
push edi
push 0x208
push 0
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
call fcn.00457760
lea ecx, [esp + 0x47c]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4469fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x4469fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4469e0
test edx, edx
lea eax, [ecx - 2]
lea edi, [esp + 0x470]
cmovne eax, ecx
xor ecx, ecx
add edi, 0xfffffffe
mov word [eax], cx
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x446a15
mov eax, dword [0x491fa8]
mov edx, ebp
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446a30
lea edi, [esp + 0x470]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446a50
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 0x446a74
mov eax, dword [0x499768]
mov dword [ecx], eax
mov ax, word [0x49976c]
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 ebp, eax
cmp ebp, 0xffffffff
je 0x446dd7
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x446db8
mov ecx, 0x498880
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446af6
test dx, dx
je 0x446af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x446ad0
xor eax, eax
jmp 0x446afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x446ab3
mov ecx, 0x499770
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446b2e
test dx, dx
je 0x446b2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446b2e
add eax, 4
add ecx, 4
test dx, dx
jne 0x446b08
xor eax, eax
jmp 0x446b33
sbb eax, eax
or eax, 1
test eax, eax
je 0x446ab3
test byte [esp + 0x18], 0x10
push 0x208
push 0
je 0x446c1d
lea eax, [esp + 0x680]
push eax
call fcn.00457760
mov edx, dword [esp + 0x20]
add esp, 0xc
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446b63
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 0x446b80
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 0x446ba4
mov eax, dword [0x491fa8]
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 0x446bc0
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 0x446be0
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 + 0x10]
push eax
push esi
push ebx
call fcn.00446980
add esp, 0xc
test eax, eax
jne 0x446ab3
jmp 0x446dd7
lea eax, [esp + 0x270]
push eax
call fcn.00457760
lea ecx, [esp + 0x274]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x446c5e
movzx eax, word [esi + ecx]
test ax, ax
je 0x446c5e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x446c40
test edx, edx
lea eax, [ecx - 2]
lea edi, [esp + 0x268]
cmovne eax, ecx
xor ecx, ecx
add edi, 0xfffffffe
mov word [eax], cx
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x446c75
mov eax, dword [0x491fa8]
mov edx, dword [esp + 0x14]
mov esi, edx
mov dword [edi], eax
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x446c90
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 0x446cb0
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 0x446cd4
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 0x446cf0
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 0x446d10
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]
test ebx, ebx
je 0x446dac
cmp dword [ebx], 2
jne 0x446da0
mov esi, dword [ebx + 4]
lea eax, [esp + 0x880]
push 0x208
push 0
push eax
call fcn.00457760
add esp, 0xc
lea eax, [esp + 0x880]
push 0
push 0
push 0x206
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x446dd7
push 2
push 0
lea eax, [esp + 0x270]
mov ecx, esi
push eax
lea eax, [esp + 0x88c]
push eax
call fcn.00445cf0
mov dword [0x4aa424], eax
test eax, eax
jne 0x446dd7
jmp 0x446aaf
mov dword [0x4aa424], 0x80000
jmp 0x446dd7
mov dword [0x4aa424], 0x10000
jmp 0x446dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
cmp eax, 0x12
jne 0x446dd1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x446dd9
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004554e8
add esp, 0xa80
ret