Function at 0x4f48a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21fc
call fcn.00554650
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1108], eax
push ebx
mov ebx, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x110c], ebx
mov dword [ebp - 0x1104], edx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1110], ecx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1114], edi
test eax, eax
je 0x4f48fd
cmp dword [ebp + 0x24], 0
je 0x4f48fd
xor ebx, ebx
mov word [eax], bx
mov ebx, dword [ebp - 0x110c]
sub esp, 0xc
push edi
push 0
push ecx
push edx
push dword [ebp + 0xc]
mov edx, ebx
mov ecx, esi
call fcn.004f40c0
add esp, 0x20
test eax, eax
jns 0x4f4cb6
lea eax, [ebp - 0xdb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10fc], eax
cmp eax, 0xffffffff
je 0x4f4cb1
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f4940
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
cmp ecx, 0x105
jae 0x4f496f
push esi
push 0x105
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x4f498a
push 0x104
push esi
push 0x105
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f49aa
lea esi, [ebp - 0x218]
jmp 0x4f49ad
add esi, 2
push 0x528
lea eax, [ebp - 0xb60]
mov dword [ebp - 0x1100], esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10f8]
push 0x346
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1640]
push 0x528
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1eb0]
push 0x346
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x428], ax
push 0x528
push eax
lea eax, [ebp - 0x1b68]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21f8]
push 0x346
push 0
push eax
call sub.MSVCR120.dll_memset
mov ebx, dword [ebp - 0x163c]
add esp, 0xc
mov edi, dword [ebp - 0x10fc]
xor eax, eax
mov word [ebp - 0x638], ax
jmp 0x4f4a60
test byte [ebp - 0xdb0], 0x10
jne 0x4f4bbb
lea eax, [ebp - 0xd84]
mov edx, 0x105
push eax
lea ecx, [ebp - 0x218]
mov eax, esi
sub eax, ecx
mov ecx, esi
sar eax, 1
sub edx, eax
call fcn.0052fa00
mov edx, dword [ebp - 0x110c]
lea eax, [ebp - 0x10f8]
sub esp, 8
lea ecx, [ebp - 0x218]
push dword [ebp - 0x1114]
push 0
push eax
lea eax, [ebp - 0xb60]
push eax
push dword [ebp + 0xc]
call fcn.004f40c0
add esp, 0x20
sub eax, 0
je 0x4f4b34
dec eax
jne 0x4f4bbb
mov eax, dword [ebp - 0xb54]
cmp eax, dword [ebp - 0x1b5c]
jl 0x4f4bbb
jg 0x4f4af0
mov eax, dword [ebp - 0xb58]
cmp eax, dword [ebp - 0x1b60]
jbe 0x4f4bbb
mov ecx, 0x14a
lea esi, [ebp - 0xb60]
lea edi, [ebp - 0x1b68]
mov edx, 0x105
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xd1
lea esi, [ebp - 0x10f8]
lea edi, [ebp - 0x21f8]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x638]
movsw word es:[edi], word [esi]
call fcn.0052fa00
jmp 0x4f4bb2
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f4b43
cmp dword [ebp - 0xb60], eax
jne 0x4f4bbb
mov eax, dword [ebp - 0xb5c]
cmp eax, ebx
ja 0x4f4b6d
jne 0x4f4bbb
mov eax, dword [ebp - 0xb54]
cmp eax, dword [ebp - 0x1634]
jl 0x4f4bbb
jg 0x4f4b6d
mov eax, dword [ebp - 0xb58]
cmp eax, dword [ebp - 0x1638]
jbe 0x4f4bbb
mov ecx, 0x14a
lea esi, [ebp - 0xb60]
lea edi, [ebp - 0x1640]
mov edx, 0x105
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xd1
lea esi, [ebp - 0x10f8]
lea edi, [ebp - 0x1eb0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
movsw word es:[edi], word [esi]
call fcn.0052fa00
mov ebx, dword [ebp - 0x163c]
mov edi, dword [ebp - 0x10fc]
add esp, 4
lea eax, [ebp - 0xdb0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x1100]
test eax, eax
jne 0x4f4a60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1640], 0
je 0x4f4c46
mov edi, dword [ebp - 0x1104]
lea esi, [ebp - 0x1640]
mov ecx, 0x14a
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1110]
test edi, edi
je 0x4f4c13
mov ecx, 0xd1
lea esi, [ebp - 0x1eb0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp - 0x1108]
test ecx, ecx
je 0x4f4c33
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x4f4c33
lea eax, [ebp - 0x428]
push eax
call fcn.0052fa00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1b68], 0
je 0x4f4cb1
mov edi, dword [ebp - 0x1104]
lea esi, [ebp - 0x1b68]
mov ecx, 0x14a
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1110]
test edi, edi
je 0x4f4c7b
mov ecx, 0xd1
lea esi, [ebp - 0x21f8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp - 0x1108]
test ecx, ecx
je 0x4f4c9b
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x4f4c9b
lea eax, [ebp - 0x638]
push eax
call fcn.0052fa00
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret