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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c52d3
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x40]
xor esi, esi
mov dword [ebp - 4], 1
xor eax, eax
push esi
lea ecx, [ebp + 8]
mov word [ebp - 0x30], ax
push ecx
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
call fcn.00404570
push 3
mov eax, 0x4e5744
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00407570
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47992a
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x29c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x479a7d
test byte [ebp - 0x29c], 0x10
je 0x479a31
cmp word [ebp - 0x270], 0x2e
je 0x479a54
push esi
lea eax, [ebp + 8]
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], dx
call fcn.00404570
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 3
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x479995
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x4c]
call fcn.00407570
push 1
mov eax, 0x4ddaa0
lea ecx, [ebp - 0x4c]
call fcn.00407570
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a8], esp
push esi
lea eax, [ebp + 0x24]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a4], esp
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x4c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
mov byte [ebp - 4], 3
call fcn.004798b0
add esp, 0x3c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 8
jb 0x479a54
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00490a16
add esp, 4
jmp 0x479a54
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x479a3d
lea eax, [ebp + 0x24]
lea edx, [ebp - 0x270]
push edx
call fcn.0045ada0
add esp, 4
test eax, eax
jne 0x479ae9
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x479951
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 8
cmp dword [ebp - 0x1c], ebx
jb 0x479a93
mov eax, dword [ebp - 0x30]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov word [ebp - 0x30], cx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
cmp dword [ebp + 0x1c], ebx
jb 0x479ab0
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
cmp dword [ebp + 0x38], ebx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
jb 0x479acd
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00490a16
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0x30]
push edx
or eax, 0xffffffff
mov ecx, ebx
call fcn.00404570
lea eax, [ebp - 0x2a0]
push eax
push ebx
mov edi, 1
or ecx, 0xffffffff
mov dword [ebp - 0x2a0], 0x5c
call fcn.0042fdb0
inc eax
push eax
xor ecx, ecx
lea esi, [ebp - 0x4c]
mov edx, ebx
call fcn.004070a0
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 5
call fcn.00409010
mov edi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], edi
jb 0x479b4c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00490a16
add esp, 4
push 0
lea edx, [ebp + 0x24]
push edx
or eax, 0xffffffff
mov esi, ebx
call fcn.00408c20
cmp dword [ebp - 0x1c], edi
jb 0x479b6d
mov eax, dword [ebp - 0x30]
push eax
call fcn.00490a16
add esp, 4
xor esi, esi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], cx
cmp dword [ebp + 0x1c], edi
jb 0x479b91
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
cmp dword [ebp + 0x38], edi
mov dword [ebp + 0x1c], ebx
jmp 0x479ab8