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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esi + 0x20464]
mov edx, dword [esi + 0x20468]
mov eax, dword [esi + 0x2046c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esi + 0x20478], ebx
test edx, edx
jne 0x4456b6
cmp dword [esi + 0x20470], 2
jne 0x4456b6
mov eax, dword [esi + 0x2045c]
cmp word [eax + 2], 0x3a
jne 0x4456b6
mov dword [esi + 0x10250], 0x2e
mov byte [esp + 0x44], dl
mov edx, 1
mov dword [esi + 0x20468], 1
mov eax, 0x8000
lea ecx, [esi + 0x250]
sub eax, ebx
lea ecx, [ecx + ebx*2]
mov dword [esp + 0x28], eax
cmp edx, eax
jae 0x4459f7
lea eax, [edx*2 + 2]
push eax
lea eax, [esi + 0x10250]
push eax
push ecx
call fcn.004b9800
add esp, 0xc
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, eax
xor ebx, ebx
cmp ebp, 0xffffffff
setne bl
je 0x445729
nop word [eax + eax]
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.0045b920
test al, al
je 0x445729
push esi
push ebp
call edi
mov ebx, eax
test ebx, ebx
jne 0x445710
mov eax, dword [0x50499c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [eax + 0x10], esi
test ebx, ebx
je 0x44585f
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x77
jne 0x44578b
mov esi, eax
jmp 0x445764
mov edx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
push 2
call fcn.0043e3c0
mov ecx, dword [esi + 0x14]
mov edi, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
cmp edx, ecx
je 0x445760
mov esi, dword [esp + 0x48]
jmp 0x4457a2
lea eax, [esp + 0x14]
push eax
push edx
push 3
call fcn.0043e3c0
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x18], edi
test edx, edx
je 0x4457ca
cmp edi, 6
jne 0x445822
cmp edx, dword [esp + 0x10]
je 0x4457d4
mov eax, dword [esp + 0x38]
push ebp
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c
cmp edi, 1
je 0x4457d4
cmp edi, 6
jne 0x445846
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4457f0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00444f20
test al, al
jne 0x445842
nop dword [eax]
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x445809
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.0045b920
test al, al
jne 0x4457f0
mov eax, dword [esp + 0x24]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test edi, edi
je 0x445859
mov edx, dword [esp + 0x30]
jmp 0x445750
cmp edx, dword [esp + 0x10]
jne 0x4457b1
mov eax, dword [esp + 0x34]
push ebp
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c
mov edi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp ebp, 0xffffffff
je 0x44586b
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x44], 0
je 0x4459f7
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + eax*2 + 0x250], 0x2a
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x48], ebp
cmp ebp, 0xffffffff
je 0x4459f7
mov eax, 0x8000
sub eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
nop
test byte [esi], 0x10
je 0x4459e0
cmp word [esi + 0x2c], 0x2e
lea ecx, [esi + 0x2c]
jne 0x4458e0
movzx eax, word [esi + 0x2e]
test ax, ax
je 0x4459e0
cmp eax, 0x2e
jne 0x4458e0
cmp word [esi + 0x30], 0
je 0x4459e0
mov ebx, ecx
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4458e5
sub ebx, edx
sar ebx, 1
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x28]
jae 0x4459e0
mov eax, dword [esp + 0x1c]
lea edi, [ebx + ebx]
add eax, 0x128
push edi
push ecx
lea ebp, [esi + eax*2]
push ebp
call fcn.004b9800
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x234]
inc eax
mov dword [edi + ebp], 0x5c
add esp, 0xc
lea edx, [ecx + 2]
add eax, ebx
mov dword [esi + 0x20464], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445940
sub ecx, edx
sar ecx, 1
mov ebp, ecx
cmove ebp, ebx
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x24]
jae 0x4459d6
test ecx, ecx
lea edi, [ebp*2]
mov ecx, 0x234
mov eax, 0x2c
cmovne eax, ecx
add eax, esi
push edi
push eax
mov eax, dword [esp + 0x28]
add eax, 0x822c
lea ebx, [esi + eax*2]
push ebx
call fcn.004b9800
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc eax
mov dword [edi + ebx], 0x5c
add eax, ebp
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
push esi
push dword [esp + 0x48]
mov dword [esi + 0x2046c], eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
push ebp
push dword [esp + 0x48]
call fcn.00445650
mov edi, eax
cmp edi, 1
jne 0x445a06
cmp byte [ebp], 0
jne 0x4459ec
cmp dword [ebx], 0
jne 0x4459ec
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, dword [esp + 0x48]
push esi
push ebp
call edi
test eax, eax
jne 0x4458b0
push dword [esp + 0x48]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x1c
push dword [esp + 0x48]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c