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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
push ebx
mov ebx, dword [ebp + 0x20]
lea eax, [esp + 0x268]
push esi
push edi
push 0x103
push ebx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [esp + 0x482], ax
lea eax, [esp + 0x27c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 0x14
test eax, eax
je 0x445821
lea esi, [eax + 2]
lea edx, [esp + 0x478]
mov ecx, esi
sub edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4457f0
xor eax, eax
lea edi, [esp + 0x270]
mov word [esi], ax
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x445810
sub edi, ecx
sar edi, 1
jmp 0x445847
xor ecx, ecx
movzx eax, word [esp + ecx + 0x270]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x476], ax
test ax, ax
jne 0x445823
xor eax, eax
xor edi, edi
mov word [esp + 0x270], ax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
setne bl
je 0x445891
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x270]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.0045ba10
add esp, 8
test al, al
je 0x445891
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x445863
mov eax, dword [0x4e211c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x4459e2
mov ebx, esi
nop word [eax + eax]
lea ecx, [esp + 0x20]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x75
jne 0x4458fa
mov ebx, eax
jmp 0x4458d3
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push edx
push 2
call fcn.0043e790
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp edx, ecx
je 0x4458d0
mov ebx, dword [esp + 0xc]
jmp 0x445911
lea eax, [esp + 0x18]
push eax
push edx
push 3
call fcn.0043e790
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x14], esi
test edx, edx
je 0x44593b
cmp esi, 6
jne 0x4459a6
cmp edx, dword [esp + 0x10]
je 0x445949
mov eax, dword [ebp + 0x10]
push ebx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 1
je 0x445949
cmp esi, 6
jne 0x4459cc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x445960
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00445190
test al, al
jne 0x4459c8
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
je 0x44598e
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x270]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.0045ba10
add esp, 8
test al, al
jne 0x445960
mov eax, dword [esp + 0x1c]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test esi, esi
je 0x4459de
mov edx, dword [ebp + 8]
jmp 0x4458b0
cmp edx, dword [esp + 0x10]
jne 0x445924
mov eax, dword [ebp + 0xc]
push ebx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [esp + 0xc]
cmp esi, 0xffffffff
je 0x4459ee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x1c], 0
je 0x445b33
cmp edi, 0x100
ja 0x445b33
mov eax, dword [0x4d541c]
lea ecx, [esp + 0x270]
lea ecx, [ecx + edi*2]
mov dword [ecx], eax
mov eax, dword [0x4d5420]
mov dword [ecx + 4], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x274]
mov dword [esp + 0x20], ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x445b33
lea ecx, [esp + 0x478]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445a50
mov ebx, dword [ebp + 0xc]
sub ecx, edx
sar ecx, 1
lea esi, [ecx + edi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
nop dword [eax]
test byte [esp + 0x20], 0x10
je 0x445b11
cmp word [esp + 0x4c], 0x2e
jne 0x445a9f
mov ax, word [esp + 0x4e]
test ax, ax
je 0x445b11
cmp ax, 0x2e
jne 0x445a9f
cmp word [esp + 0x50], 0
je 0x445b11
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445aa6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, 0x102
ja 0x445b11
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x50]
push eax
push 0x4d5424
push dword [esp + 0x28]
call fcn.00405b50
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x280]
add esp, 0x10
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push ebx
push dword [ebp + 8]
call fcn.00445790
mov esi, eax
cmp esi, 1
jne 0x445b41
cmp byte [ebx], 0
jne 0x445b28
cmp dword [edi], 0
jne 0x445b28
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x445a70
push dword [esp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [esp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c