Function at 0x4e1764
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x4e1af9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x158]
push eax
push 0x4e1b0c
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4e1abd
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x4e1abd
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
mov ebx, dword [ebp - 0x158]
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.00404c90
sub ebx, 0x65
jae 0x4e1a9f
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x10]
call fcn.00408fc0
mov eax, dword [ebp - 0x2a8]
push eax
lea edx, [ebp - 0x2ac]
mov eax, 0x4e1b18
call fcn.00408fc0
mov edx, dword [ebp - 0x2ac]
pop eax
call fcn.00404e2c
je 0x4e1a9f
lea edx, [ebp - 0x2b0]
mov eax, dword [ebp - 0x10]
call fcn.00408fc0
mov eax, dword [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x2b4]
mov eax, 0x4e1b28
call fcn.00408fc0
mov edx, dword [ebp - 0x2b4]
pop eax
call fcn.00404e2c
je 0x4e1a9f
mov eax, dword [ebp - 0x10]
mov edx, 0x4e1b3c
call fcn.00404e2c
je 0x4e1a9f
mov eax, dword [ebp - 0x10]
mov edx, 0x4e1b48
call fcn.00404e2c
je 0x4e1a9f
push dword [ebp - 4]
push 0x4e1b54
push dword [ebp - 0x10]
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.00404da0
mov edx, dword [ebp - 0x2b8]
mov ecx, dword [0x5812e0]
mov ecx, dword [ecx]
mov eax, 0x4e1b60
call fcn.004d4684
test al, al
jne 0x4e1a9f
mov eax, dword [ebp + 0xc]
call fcn.004d0190
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov byte [eax + 0x12], 1
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov edx, dword [0x580bb0]
mov dl, byte [edx + 0x14]
mov byte [eax + 0xc], dl
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
xor edx, edx
mov dword [eax + 0xe], edx
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x13
mov edx, 0x4e1b74
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x17
mov edx, 0x4e1b84
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x1b
mov edx, 0x4e1ba0
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x1f
mov edx, 0x4e1b60
call fcn.00404a74
push dword [ebp - 4]
push 0x4e1b54
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x23
mov edx, 3
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x2f
mov edx, dword [ebp - 0x10]
call fcn.00404a74
push dword [ebp - 4]
push 0x4e1b54
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x14]
call fcn.004099b4
test al, al
je 0x4e1a87
xor eax, eax
push ebp
push 0x4e1a65
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2a4]
call fcn.00402f40
mov edx, 1
lea eax, [ebp - 0x2a4]
call fcn.004035ec
call fcn.00402944
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x4b
push eax
lea eax, [ebp - 0x2a4]
call fcn.0040328c
call fcn.00402944
pop edx
mov dword [edx], eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov eax, dword [eax + 0x4b]
mov edx, dword [0x581294]
add dword [edx], eax
lea eax, [ebp - 0x2a4]
call fcn.004030b0
call fcn.00402944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1a87
mov eax, dword [ebp + 8]
inc dword [eax]
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp + 8]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004d4158
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e17e1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1b00
lea eax, [ebp - 0x2b8]
mov edx, 5
call fcn.00404a44
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret