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

Disassembly:
mov eax, dword [0xf71e5c]
mov ecx, dword [0xf71dc4]
sub esp, 0x9a4
push ebx
push ebp
shr eax, 3
xor ebp, ebp
push esi
push edi
cmp eax, ebp
jbe 0x41bdbe
mov esi, ecx
mov dword [esp + 0x44], 0x9e3779b9
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], eax
jmp 0x41bb94
mov esi, dword [esp + 0x28]
cmp dword [0xf71e5c], 0x1c
jne 0x41bbab
lea eax, [esp + 0x60]
push eax
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov edx, dword [0x81c6e8]
mov eax, dword [0x81c6ec]
mov edi, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x81c6f0]
mov dword [esp + 0x38], edx
mov edx, dword [0x81c6f4]
mov dword [esp + 0x18], 0xc6ef3720
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], 0x20
mov ebx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x40]
mov esi, edi
add ebx, edi
shr esi, 5
cmp dword [0xf71e5c], 0x1b
mov dword [esp + 0x14], eax
jne 0x41bc58
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push 0x40417c
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
xor eax, eax
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x68]
push eax
push ebp
push ebp
push ebp
mov dword [esp + 0x60], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
add esi, dword [esp + 0x48]
xor eax, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
mov dword [0xf71dc8], ebp
mov eax, dword [esp + 0x24]
add dword [0xf71dc8], eax
mov edx, dword [0xf71dc8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x34]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x38]
add esi, ecx
cmp dword [0xf71e5c], 0x1be
mov dword [esp + 0x14], eax
jne 0x41bd0e
push ebp
lea eax, [esp + 0x1b4]
push eax
push ebp
push 0x4041c8
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea ecx, [esp + 0x6c]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0x40418c
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
shr ecx, 5
add ecx, dword [esp + 0x3c]
cmp dword [0xf71e5c], 0x979
mov dword [0xf71dd0], 0xff6b3619
mov dword [0xf71dd4], 0xffffffff
mov dword [esp + 0x24], ecx
jne 0x41bd49
lea edx, [esp + 0x70]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
xor eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x44]
add dword [esp + 0x20], eax
sub dword [esp + 0x18], eax
dec dword [esp + 0x2c]
jne 0x41bbeb
cmp dword [0xf71e5c], 0x8d4
jne 0x41bd87
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
cmp dword [0xf71e5c], 0x17
jne 0x41bdad
lea ecx, [esp + 0x70]
push ecx
push 0x40420c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], esi
jne 0x41bb90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret