Function at 0x49e610
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521240
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2268
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
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 dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x2270], edi
mov byte [ebp - 0x2269], 0
mov dword [ebp - 4], edi
cmp esi, edi
je 0x49e8c6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49e667
sub eax, edx
sar eax, 1
je 0x49e8c6
push 0x800
push edi
lea eax, [ebp - 0x818]
push eax
call fcn.004fd670
push 0x800
push edi
lea ecx, [ebp - 0x1018]
push ecx
call fcn.004fd670
push 0x3ff
push esi
push 0x400
lea edx, [ebp - 0x818]
push edx
call fcn.004fa71b
mov ecx, 0x539d98
lea edx, [ebp - 0x818]
call fcn.00494ad0
mov ecx, 0x568974
lea edx, [ebp - 0x818]
call fcn.00494c80
push 0x800
push edi
lea eax, [ebp - 0x2018]
push eax
call fcn.004fd670
lea ecx, [ebp - 0x818]
push ecx
push str._s.
lea edx, [ebp - 0x2018]
call fcn.00404380
add esp, 0x3c
lea edx, [ebp - 0x2268]
push edx
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 6
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, 0xffffffff
je 0x49e83f
lea eax, [ebp - 0x223c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e733
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x49e762
mov eax, 0x2e
cmp word [ebp - 0x223c], ax
jne 0x49e762
cmp word [ebp - 0x223a], ax
je 0x49e802
lea eax, [ebp - 0x223c]
lea edx, [eax + 2]
jmp 0x49e770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e770
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x49e78e
cmp word [ebp - 0x223c], 0x2e
je 0x49e802
push 0x800
push 0
lea ecx, [ebp - 0x1818]
push ecx
call fcn.004fd670
lea edx, [ebp - 0x223c]
push edx
lea eax, [ebp - 0x818]
push eax
push 0x535a74
lea edx, [ebp - 0x1818]
call fcn.00404380
add esp, 0x18
test byte [ebp - 0x2268], bl
je 0x49e831
push str.desktop.ini
lea ecx, [ebp - 0x223c]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x49e831
push 0x3ff
lea edx, [ebp - 0x1818]
push edx
push 0x400
lea eax, [ebp - 0x1018]
push eax
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x2268]
push ecx
push esi
call edi
test eax, eax
jne 0x49e721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2270], eax
cmp eax, 0x12
jne 0x49e838
mov dword [ebp - 0x2270], 0
jmp 0x49e838
mov byte [ebp - 0x2269], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x1018]
lea edx, [eax + 2]
jmp 0x49e850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e850
sub eax, edx
sar eax, 1
je 0x49e89d
cmp byte [ebp - 0x2269], cl
jne 0x49e89d
mov dword [ebp - 0x2270], 0
push 1
lea ecx, [ebp - 0x1018]
call fcn.0049c660
add esp, 4
test eax, eax
jne 0x49e89d
push 1
lea ecx, [ebp - 0x818]
call fcn.0049c660
add esp, 4
mov dword [ebp - 0x2270], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2270]
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.004fa103
mov esp, ebp
pop ebp
ret
mov eax, 0xd
jmp 0x49e8aa