Function at 0x41d760
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Read file on windows

Disassembly:
mov eax, dword [0xf89e0c]
sub esp, 0xaa4
push ebx
push ebp
mov ecx, eax
push esi
mov esi, dword [0xf88604]
shr ecx, 3
push edi
test ecx, ecx
je 0x41d9dc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
jmp 0x41d794
mov esi, dword [esp + 0x1c]
cmp eax, 0x1c
jne 0x41d7af
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [0xf89e0c]
mov ecx, dword [esi + 4]
mov edx, dword [0x81eb00]
mov ebx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81eb04]
mov dword [esp + 0x2c], edx
mov edx, dword [0x81eb08]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x81eb0c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
mov ecx, ebx
shl ecx, 4
mov dword [esp + 0x10], ecx
cmp eax, 5
jne 0x41d815
push 0
lea edx, [esp + 0x2b4]
push edx
push 0x40417c
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [0xf89e0c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x10], ecx
mov esi, ebx
shr esi, 5
lea edi, [ebx + ebp]
cmp eax, 0x1b
jne 0x41d877
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push 0x4041ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
xor eax, eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x54]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, dword [esp + 0x34]
xor dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [0xf88608], edi
mov eax, dword [esp + 0x18]
add dword [0xf88608], eax
mov eax, dword [0xf88608]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
cmp dword [0xf89e0c], 0x1be
mov dword [esp + 0x10], eax
lea esi, [ecx + ebp]
jne 0x41d929
push edi
lea edx, [esp + 0x2b4]
push edx
push edi
push 0x4041e0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x5c]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0x4041cc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x38]
cmp dword [0xf89e0c], 0x979
mov dword [0xf88610], 0xff6b3619
mov dword [0xf88614], 0xffffffff
mov dword [esp + 0x18], ecx
jne 0x41d964
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xf89e0c]
sub ebx, dword [esp + 0x10]
cmp eax, 0x93
je 0x41d988
add ebp, 0x61c88647
dec dword [esp + 0x20]
jne 0x41d7ed
cmp eax, 0x8d4
jne 0x41d99f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], edx
mov eax, dword [0xf89e0c]
cmp eax, 0x17
jne 0x41d9cb
lea eax, [esp + 0x60]
push eax
push 0x404220
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov eax, dword [0xf89e0c]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x41d790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xaa4
ret