Function at 0x486368
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4f
push 0
push 0
dec ecx
jne 0x486370
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x48679c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
lea edx, [ebp - 0x24]
mov eax, dword [0x48e5cc]
mov eax, dword [eax]
call fcn.0047d740
mov word [ebp - 0x30], 0
mov word [ebp - 0x2e], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x417b24]
call fcn.00403ce8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push 0x50
lea eax, [ebp - 0x239]
push eax
mov eax, dword [0x48e744]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ReadConsoleOutputCharacterA
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x239]
mov ecx, 0x1f5
call fcn.00404d74
mov edx, dword [ebp - 0x240]
mov eax, 0x4867b4
call fcn.00405108
mov ebx, eax
dec ebx
cmp ebx, 0xffffffff
jle 0x48645f
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x239]
mov ecx, 0x1f5
call fcn.00404d74
mov edx, dword [ebp - 0x244]
mov eax, 0x4867c0
call fcn.00405108
mov esi, eax
dec esi
lea eax, [ebx + 1]
mov dword [ebp - 0xc], eax
sub esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
jmp 0x486490
inc word [ebp - 0x2e]
cmp word [ebp - 0x2e], 0x14
jle 0x4863dd
mov word [ebp - 0x2e], 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 8], 2
jbe 0x486759
jmp 0x4863dd
cmp dword [ebp - 8], 2
jbe 0x48674a
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push 0x50
lea eax, [ebp - 0x239]
push eax
mov eax, dword [0x48e744]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ReadConsoleOutputCharacterA
cmp byte [ebp + ebx - 0x239], 0x5b
jne 0x486733
lea eax, [ebp - 0x28]
call fcn.00404b04
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x239]
mov ecx, 0x1f5
call fcn.00404d74
mov eax, dword [ebp - 0x248]
mov edx, dword [ebp - 0xc]
inc edx
mov ecx, dword [ebp - 0x10]
call fcn.00405024
mov edx, dword [ebp - 0x14]
mov al, 0x2a
call fcn.00486184
mov dword [ebp - 0x18], eax
cmp byte [ebp - 1], 0
je 0x4865b4
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x239]
mov ecx, 0x1f5
call fcn.00404d74
mov eax, dword [ebp - 0x254]
mov edx, ebx
sub edx, 7
mov ecx, 6
call fcn.00405024
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.00408ea0
mov edx, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x2c]
mov al, 0x2f
call fcn.00481c20
cmp dword [ebp - 0x1c], 0
jne 0x48658d
lea ecx, [ebp - 0x258]
mov edx, 1
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x258]
call fcn.004094e4
imul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x25c]
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x25c]
call fcn.004094e4
dec eax
imul dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x4865c6
cmp dword [ebp - 0x1c], 0
jne 0x4865c0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fild dword [ebp - 0x1c]
fdivp st(1)
fmul dword [0x4867c4]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d050
mov esi, eax
lea eax, [ebp - 0x260]
mov dl, byte [ebp - 0x1f4]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x260]
lea eax, [ebp - 0x264]
call fcn.004033d4
lea eax, [ebp - 0x268]
mov dl, byte [ebp - 0x1f3]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x264]
mov cl, 2
call fcn.004033a4
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x26c]
call fcn.004033d4
lea eax, [ebp - 0x268]
mov dl, byte [ebp - 0x1f2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x26c]
mov cl, 3
call fcn.004033a4
lea edx, [ebp - 0x26c]
lea eax, [ebp - 0x274]
call fcn.004033d4
lea eax, [ebp - 0x268]
mov dl, byte [ebp - 0x1f1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x274]
mov cl, 4
call fcn.004033a4
lea edx, [ebp - 0x274]
lea eax, [ebp - 0x28]
call fcn.00404d68
push dword [ebp - 0x24]
push 0x4867d0
lea edx, [ebp - 0x27c]
mov eax, esi
call fcn.004093a8
push dword [ebp - 0x27c]
push 0x4867dc
lea eax, [ebp - 0x278]
mov edx, 4
call fcn.00404e84
mov edx, dword [ebp - 0x278]
mov eax, dword [0x48e5cc]
mov eax, dword [eax]
call fcn.0047d78c
mov eax, dword [ebp - 0x28]
call fcn.0040aadc
call fcn.00402f88
mov edx, eax
mov eax, dword [0x48e3ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x410]
call fcn.0048023c
mov eax, dword [0x48e3ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
mov edx, esi
call fcn.0048023c
push 0x32
call sub.KERNEL32.DLL_Sleep_1
mov eax, dword [0x48e5cc]
mov eax, dword [eax]
call fcn.0047da80
cmp esi, 0x64
jge 0x486759
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 8], 2
ja 0x48649a
mov eax, dword [0x48e5cc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.0047d78c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4867a3
lea eax, [ebp - 0x27c]
mov edx, 2
call fcn.00404b28
lea eax, [ebp - 0x25c]
mov edx, 8
call fcn.00404b28
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404b28
lea eax, [ebp - 0x14]
call fcn.00404b04
ret