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

Disassembly:
mov eax, dword [0xc0c1dc]
sub esp, 0x99c
push ebx
push ebp
push esi
mov esi, dword [0xc0c144]
shr eax, 3
push edi
test eax, eax
je 0x41bd8f
mov dword [esp + 0x3c], 0x9e3779b9
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
jmp 0x41bb66
mov esi, dword [esp + 0x20]
cmp dword [0xc0c1dc], 0x1c
jne 0x41bb80
lea eax, [esp + 0x58]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov edx, dword [0x4b5ea8]
mov eax, dword [0x4b5eac]
mov ebx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4b5eb0]
mov dword [esp + 0x30], edx
mov edx, dword [0x4b5eb4]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x38]
mov esi, ebx
shr esi, 5
cmp dword [0xc0c1dc], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [edi + ebx]
jne 0x41bc2a
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push 0x40417c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
push eax
push eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x40]
xor eax, ebp
mov dword [esp + 0x1c], esi
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [0xc0c148], esi
mov eax, dword [esp + 0x1c]
add dword [0xc0c148], eax
mov ecx, dword [0xc0c148]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x30]
cmp dword [0xc0c1dc], 0x1be
mov dword [esp + 0x10], eax
lea ebp, [edi + ecx]
jne 0x41bcdf
push esi
lea eax, [esp + 0x1ac]
push eax
push esi
push 0x4041c8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea ecx, [esp + 0x64]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0x40418c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x34]
cmp dword [0xc0c1dc], 0x979
mov dword [0xc0c150], 0xff6b3619
mov dword [0xc0c154], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x41bd1a
lea edx, [esp + 0x68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
sub ebx, dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x18], eax
sub edi, dword [esp + 0x18]
dec dword [esp + 0x24]
jne 0x41bbbd
cmp dword [0xc0c1dc], 0x8d4
jne 0x41bd58
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
cmp dword [0xc0c1dc], 0x17
jne 0x41bd7e
lea ecx, [esp + 0x68]
push ecx
push 0x40420c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x41bb62
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x99c
ret