Function at 0x80e200
Capabilities:
Accept command line arguments
Manipulate console buffer

Disassembly:
mov eax, dword [0xb9922c]
sub esp, 0xa8c
push ebx
push ebp
push esi
shr eax, 3
push edi
mov edi, dword [0xb99194]
test eax, eax
je 0x80e424
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80e234
mov edi, dword [esp + 0x1c]
cmp dword [0xb9922c], 0x1c
jne 0x80e24e
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x8142d0]
mov eax, dword [0x8142d4]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8142d8]
mov dword [esp + 0x30], edx
mov edx, dword [0x8142dc]
mov ebx, 0xc6ef3720
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 0x20
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x34]
mov edi, esi
shr edi, 5
cmp dword [0xb9922c], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [ebx + esi]
jne 0x80e2e9
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x403ee4
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]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0x28]
xor eax, ebp
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [0xb99198], ebp
mov eax, dword [esp + 0x18]
add dword [0xb99198], eax
mov ecx, dword [0xb99198]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x2c]
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 + 0x30]
cmp dword [0xb9922c], 0x1be
mov dword [esp + 0x10], ecx
lea edi, [ebx + eax]
jne 0x80e39a
push ebp
lea eax, [esp + 0x29c]
push eax
push ebp
push 0x403f30
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea ecx, [esp + 0x40]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
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 [0xb991a0], 0xff6b3619
mov dword [0xb991a4], 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 0x80e28b
cmp dword [0xb9922c], 0x8d4
jne 0x80e3ed
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 [0xb9922c], 0x17
jne 0x80e413
lea eax, [esp + 0x48]
push eax
push 0x403ef4
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80e230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret