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

Disassembly:
sub esp, 0x958
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x954], eax
mov eax, dword [esp + 0x96c]
push ebx
push esi
mov esi, dword [esp + 0x964]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x974]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x97c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x4df600
cmp edi, ebx
je 0x4df600
mov dword [edi], ebx
mov dword [edi + 4], ebx
cmp eax, ebx
je 0x4df368
mov dword [eax], ebx
cmp ecx, ebx
je 0x4df36e
mov dword [ecx], ebx
cmp dword [esp + 0x970], ebx
je 0x4df3d6
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4df380
sub eax, edx
cmp eax, 4
jae 0x4df3d6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExA]
mov ecx, dword [esp + 0xc]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
sbb edx, dword [esp + 0x28]
mov dword [edi], ecx
mov dword [edi + 4], edx
jmp 0x4df604
push ebp
push 0x13c
lea eax, [esp + 0x5c]
push ebx
push eax
mov dword [esp + 0x60], ebx
call sub.MSVCR90.dll_memset
push 0x7cf
lea ecx, [esp + 0x1a4]
push esi
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
xor ebp, ebp
call dword [sym.imp.MSVCR90.dll__mbsnbcpy]
lea eax, [esp + 0x1ac]
add esp, 0x18
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4df418
mov dx, word [0x522b9c]
mov cl, byte [0x522b9e]
mov word [eax], dx
lea edx, [esp + 0x54]
mov byte [eax + 2], cl
push edx
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
je 0x4df5d3
mov dword [esp + 0x18], 1
jmp 0x4df464
mov esi, dword [esp + 0x50]
push 0x7cf
lea ecx, [esp + 0x198]
push esi
push ecx
call dword [sym.imp.MSVCR90.dll__mbsnbcpy]
lea edi, [esp + 0x1a0]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4df483
mov dx, word [0x4ff418]
lea eax, [esp + 0x80]
mov word [edi], dx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4df4a0
lea edi, [esp + 0x194]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4df4b1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x54], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4df580
mov esi, dword [sym.imp.MSVCR90.dll__mbscmp]
lea eax, [esp + 0x80]
push 0x502cc0
push eax
call esi
add esp, 8
test eax, eax
je 0x4df5b3
lea ecx, [esp + 0x80]
push 0x501190
push ecx
call esi
add esp, 8
test eax, eax
je 0x4df5b3
mov eax, dword [esp + 0x970]
cmp eax, ebx
je 0x4df5b3
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x97c]
lea edx, [esp + 0x48]
push edx
push ecx
mov ecx, dword [esp + 0x40]
push eax
lea edx, [esp + 0x1a8]
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
call fcn.004df300
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
adc dword [esp + 0x14], ecx
add ebp, dword [esp + 0x3c]
lea ecx, [eax + edx + 1]
mov dword [esp + 0x24], ecx
jmp 0x4df5b3
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x198]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004df290
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x10], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
adc dword [esp + 0x14], edx
inc ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4df460
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edi], edx
cmp eax, ebx
je 0x4df5f5
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4df5ff
mov dword [eax], ebp
pop ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x960]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e0148
add esp, 0x958
ret 0x18