Function at 0x414080
Capabilities:
Accept command line arguments
Manipulate console buffer
Write file on windows

Disassembly:
mov eax, dword [0xc03f44]
sub esp, 0x454
push ebx
push ebp
push esi
shr eax, 3
push edi
mov edi, dword [0xc03eac]
test eax, eax
je 0x4142c2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x4140b4
mov edi, dword [esp + 0x1c]
cmp dword [0xc03f44], 0x1c
jne 0x4140ce
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x4adc38]
mov eax, dword [0x4adc3c]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4adc40]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4adc44]
mov ebx, 0xc6ef3720
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], 0x20
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x30]
mov edi, esi
shr edi, 5
cmp dword [0xc03f44], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [ebx + esi]
jne 0x414186
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x403edc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
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_WriteFile]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0x34]
xor eax, ebp
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [0xc03eb0], ebp
mov eax, dword [esp + 0x18]
add dword [0xc03eb0], eax
mov ecx, dword [0xc03eb0]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
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 edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x2c]
cmp dword [0xc03f44], 0x1be
mov dword [esp + 0x10], ecx
lea edi, [ebx + eax]
jne 0x414238
push ebp
lea eax, [esp + 0x64]
push eax
push ebp
push 0x403ef0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x54]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0x403f0c
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 eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x38]
xor ecx, edi
mov dword [0xc03eb8], 0xff6b3619
mov dword [0xc03ebc], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add ebx, 0x61c88647
dec dword [esp + 0x20]
jne 0x41410b
cmp dword [0xc03f44], 0x8d4
jne 0x41428b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0xc03f44], 0x17
jne 0x4142b1
lea eax, [esp + 0x60]
push eax
push 0x403f30
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x4140b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret