Function at 0x42ba80
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call ebx
cmp byte [esi + 0x1319], 0
je 0x42baa9
mov edi, dword [esi + 0x1320]
test edi, edi
jns 0x42baaf
mov edi, dword [esi + 0x132c]
push 0xfffffffffffffff5
mov dword [esi + 0x187c], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
je 0x42bad3
mov dword [ebp - 4], 0x10000
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [esi + 0x187c]
push 0x439470
call fcn.00401070
add esp, 8
cmp edi, 6
ja case.default.0x42bb6f
jmp dword [edi*4 + 0x42bd08]
mov ecx, esi
call fcn.0042bd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042c4e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
cmp byte [esi + 0x1319], 0
je 0x42bb27
mov edi, dword [esi + 0x1324]
test edi, edi
jns 0x42bb2d
mov edi, dword [esi + 0x1330]
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esi + 0x1880], edi
call eax
cmp eax, 0xffffffff
je 0x42bb53
mov dword [ebp - 4], 0x20000
push dword [ebp - 4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call eax
push dword [esi + 0x1880]
push 0x439470
call fcn.00401070
add esp, 8
cmp edi, 7
ja case.default.0x42bb6f
jmp dword [edi*4 + 0x42bd24]
call ebx
call ebx
cdq
mov ecx, 0x3e8
idiv ecx
lea edi, [edx + 1]
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.004351b0
cmp eax, 6
jl 0x42bb78
mov esi, 0x3e8
nop dword [eax]
call ebx
cdq
idiv esi
lea eax, [edx + 2]
mov ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004351b0
cmp eax, 8
jl 0x42bba0
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
push edi
push str._tSimplify____d____d_n_n_tType_your_result_without_spaces.
lea eax, [esi + 0x138a]
push eax
call fcn.004011b0
add esp, 0x10
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00435130
mov eax, dword [ebp - 8]
add esi, 0x1772
cmp eax, 1
jne 0x42bc06
push dword [ebp - 4]
push 0x439470
push esi
call fcn.004011b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 4]
push str._d__d
push esi
call fcn.004011b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042c760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042c8b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042ca90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042cc10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042cd80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042d400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042dd50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042df70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
cmp byte [esi + 0x1319], 0
je 0x42bca4
mov edi, dword [esi + 0x1324]
test edi, edi
jns 0x42bcaa
mov edi, dword [esi + 0x1330]
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esi + 0x187c], edi
call eax
cmp eax, 0xffffffff
je 0x42bcd0
mov dword [ebp - 8], 0x10000
push dword [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call eax
push dword [esi + 0x187c]
push 0x439470
call fcn.00401070
add esp, 8
cmp edi, 3
ja case.default.0x42bb6f
jmp dword [edi*4 + 0x42bd44]
mov ecx, esi
call fcn.0042e790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret