Function at 0x42a840
Capabilities:
Contain obfuscated stackstrings
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x62], 0x74736554
mov dword [ebp - 0x5e], 0x726f6620
mov dword [ebp - 0x5a], 0x31425320
mov byte [ebp - 0x56], 0
mov dword [ebp - 0x55], 0x74736554
mov dword [ebp - 0x51], 0x726f6620
mov dword [ebp - 0x4d], 0x32425320
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x76], 0xe2e1a5e2
mov byte [ebp - 0x72], 0
mov dword [ebp - 0x71], 0xf2f1e5f2
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x6c], 0x4350442
mov dword [ebp - 0x68], 0x4420441
mov word [ebp - 0x64], si
mov dword [esp], 0x362
call dword [sym.imp.kernel32.dll_IsValidCodePage]
sub esp, 4
test eax, eax
je 0x42ba20
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov dword [ebp - 0xac], eax
mov eax, dword [sym.imp.kernel32.dll_SetConsoleOutputCP]
mov esi, dword fs:[0x18]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], 0x362
mov dword [ebp - 0xa0], eax
call eax
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x42a907
cmp dword [esi + 0x34], 0x78
je 0x42ba61
mov eax, 0x345
call fcn.00427180
mov dword [esp], ebx
mov dword [esp + 4], str.Cannot_set_output_codepage_to_866_n
call fcn.00427ef0
mov ebx, dword [sym.imp.kernel32.dll_CreateConsoleScreenBuffer]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], 0xc0000000
call ebx
sub esp, 0x14
mov esi, eax
mov dword [ebp - 0x84], eax
mov eax, 0x34a
call fcn.00427180
cmp esi, 0xffffffff
mov dword [esp + 4], str.Cannot_create_a_new_screen_buffer_for_ReadWrite_n
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0x80000000
call ebx
sub esp, 0x14
mov edi, eax
mov eax, 0x34f
call fcn.00427180
cmp edi, 0xffffffff
mov dword [esp + 4], str.Cannot_create_a_new_screen_buffer_for_ReadOnly_n
setne al
mov dword [ebp - 0x9c], edi
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x40000000
call ebx
sub esp, 0x14
mov ebx, eax
mov dword [ebp - 0xa4], eax
mov eax, 0x354
call fcn.00427180
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.Cannot_create_a_new_screen_buffer_for_WriteOnly_n
setne al
mov dword [esp], eax
call fcn.00427ef0
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x58f875
mov dword [ebp - 0xa8], edi
call edi
sub esp, 0x1c
mov esi, eax
mov eax, 0x35a
call fcn.00427180
cmp esi, 0xffffffff
mov dword [esp + 4], str.Cannot_open_NUL_for_ReadWrite_n
setne al
mov dword [ebp - 0x94], esi
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x58f875
call edi
sub esp, 0x1c
mov esi, eax
mov eax, 0x35d
call fcn.00427180
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.Cannot_open_NUL_for_ReadOnly_n
setne al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x58f875
call edi
sub esp, 0x1c
mov edi, eax
mov eax, 0x360
call fcn.00427180
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 4], str.Cannot_open_NUL_for_WriteOnly_n
setne al
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.00427ef0
mov dword [ebx + 0x34], 0
mov eax, 0x364
call fcn.00427180
mov eax, dword [sym.imp.kernel32.dll_SetConsoleActiveScreenBuffer]
mov dword [esp], 0xffffffff
mov dword [ebp - 0x90], eax
call eax
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x58f8db
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x366
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x58f5d4
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0
mov eax, 0x36c
call fcn.00427180
mov ecx, dword [ebp - 0x94]
mov dword [esp], ecx
mov eax, dword [ebp - 0x90]
call eax
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x58f8db
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x36d
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x58f5d4
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0
mov eax, 0x372
call fcn.00427180
mov dword [esp], esi
mov eax, dword [ebp - 0x90]
call eax
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x58f8db
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x373
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x58f5d4
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0
mov eax, 0x378
call fcn.00427180
mov dword [esp], edi
mov eax, dword [ebp - 0x90]
call eax
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x58f8db
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x379
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x58f5d4
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
lea edx, [ebp - 0x62]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], edx
mov edx, dword [sym.imp.msvcrt.dll_strlen]
mov dword [ebp - 0x80], edx
call edx
lea ecx, [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x62]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x94]
mov dword [esp], ecx
mov ecx, dword [sym.imp.kernel32.dll_WriteConsoleA]
mov dword [ebp - 0x8c], ecx
call ecx
mov edx, dword [ebx + 0x34]
sub esp, 0x14
mov dword [ebp - 0xb0], eax
mov eax, 0x381
mov dword [ebp - 0x98], edx
call fcn.00427180
mov dword [esp + 4], 0x58f8db
xor eax, eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x382
call fcn.00427180
mov edx, dword [ebp - 0x98]
mov dword [esp + 4], str.GetLastError:_got__lu_n
cmp edx, 6
mov dword [esp + 8], edx
sete al
cmp edx, 1
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea edx, [ebp - 0x62]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], edx
mov edx, dword [ebp - 0x80]
call edx
lea edx, [ebp - 0x7c]
mov dword [esp], esi
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x62]
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x8c]
call ecx
mov edx, dword [ebx + 0x34]
sub esp, 0x14
mov dword [ebp - 0xb0], eax
mov eax, 0x388
mov dword [ebp - 0x98], edx
call fcn.00427180
mov dword [esp + 4], 0x58f8db
xor eax, eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x389
call fcn.00427180
mov edx, dword [ebp - 0x98]
mov dword [esp + 4], str.GetLastError:_got__lu_n
cmp edx, 6
mov dword [esp + 8], edx
sete al
cmp edx, 1
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea edx, [ebp - 0x62]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], edx
mov edx, dword [ebp - 0x80]
call edx
lea edx, [ebp - 0x7c]
mov dword [esp], edi
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x62]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x8c]
call edx
mov edx, dword [ebx + 0x34]
sub esp, 0x14
mov dword [ebp - 0xb0], eax
mov eax, 0x38f
mov dword [ebp - 0x98], edx
call fcn.00427180
mov dword [esp + 4], 0x58f8db
xor eax, eax
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x390
call fcn.00427180
mov edx, dword [ebp - 0x98]
mov dword [esp + 4], str.GetLastError:_got__lu_n
cmp edx, 6
mov dword [esp + 8], edx
sete al
cmp edx, 1
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov ecx, dword [ebp - 0x94]
mov dword [esp], ecx
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x98], ecx
call ecx
sub esp, 4
mov dword [esp], esi
mov esi, dword [ebp - 0x98]
call esi
sub esp, 4
mov dword [esp], edi
call esi
mov dword [ebx + 0x34], 0
mov eax, 0x399
sub esp, 4
call fcn.00427180
mov edi, dword [ebp - 0x9c]
mov dword [esp], edi
mov eax, dword [ebp - 0x90]
call eax
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], 0x58f8db
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x39a
call fcn.00427180
mov edx, dword [ebx + 0x34]
mov eax, 1
cmp edx, 6
je 0x42afb2
mov ebx, dword [0x8f0770]
cmp edx, 5
sete cl
xor eax, eax
test ebx, ebx
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.unexpected_last_error__lu_n
call fcn.00427ef0
mov eax, 0x39d
call fcn.00427180
mov ebx, dword [ebp - 0xa4]
mov dword [esp], ebx
mov esi, dword [ebp - 0x90]
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.Couldnt_set_new_WriteOnly_SB_n
call fcn.00427ef0
mov eax, 0x39f
call fcn.00427180
mov edi, dword [ebp - 0x84]
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp + 4], str.Couldnt_set_new_ReadWrite_SB_n
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp], ebx
mov ebx, dword [ebp - 0x98]
call ebx
mov eax, dword [ebp - 0x9c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x58f33b
mov eax, dword [ebp - 0xa8]
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [ebp - 0xa4], eax
mov eax, 0x3a8
call fcn.00427180
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.CONOUT__is_not_opened_n
setne al
mov dword [esp], eax
call fcn.00427ef0
mov esi, dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
mov dword [esp + 4], 0xa000a
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
mov dword [ebp - 0x94], esi
call esi
sub esp, 8
mov dword [esp + 4], 0x50005
mov dword [esp], edi
call esi
lea eax, [ebp - 0x34]
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov esi, eax
test eax, eax
je 0x42b0fe
xor esi, esi
cmp word [ebp - 0x30], 5
je 0x42ba50
mov eax, 0x3b0
call fcn.00427180
movsx eax, word [ebp - 0x2e]
mov dword [esp + 0x14], eax
movsx eax, word [ebp - 0x30]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], eax
mov dword [esp + 8], 5
mov dword [esp + 4], str.Expected_cursor_at___d__d___got___d__d__n
mov dword [esp], esi
call fcn.00427ef0
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call ebx
sub esp, 8
mov ebx, eax
test eax, eax
je 0x42b160
xor ebx, ebx
cmp word [ebp - 0x30], 0xa
je 0x42ba40
mov eax, 0x3b2
lea esi, [ebp - 0x55]
call fcn.00427180
movsx eax, word [ebp - 0x2e]
mov dword [esp + 0x14], eax
movsx eax, word [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.Expected_cursor_at___d__d___got___d__d__n
call fcn.00427ef0
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0xa4]
mov dword [esp], ebx
mov eax, dword [ebp - 0x94]
call eax
sub esp, 8
mov dword [esp], esi
mov edi, dword [ebp - 0x80]
call edi
lea ecx, [ebp - 0x7c]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x8c]
call eax
mov ebx, eax
sub esp, 0x14
mov eax, 0x3ba
call fcn.00427180
test ebx, ebx
je 0x42b203
xor ebx, ebx
mov dword [esp], esi
call edi
cmp dword [ebp - 0x7c], eax
sete bl
mov dword [esp], ebx
lea ebx, [ebp - 0x48]
mov dword [esp + 4], str.WriteConsoleA_failed_n
call fcn.00427ef0
mov dword [esp], esi
mov eax, dword [ebp - 0x80]
call eax
lea ecx, [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
mov dword [ebp - 0xb8], eax
call eax
mov edi, eax
sub esp, 0x14
mov eax, 0x3bd
call fcn.00427180
test edi, edi
je 0x42b271
mov dword [esp], esi
mov eax, dword [ebp - 0x80]
call eax
cmp dword [ebp - 0x7c], eax
sete al
movzx eax, al
mov edi, eax
mov dword [esp], edi
mov dword [esp + 4], str.ReadConsoleOutputCharacterA_failed_n
call fcn.00427ef0
mov dword [esp], esi
mov edi, dword [ebp - 0x80]
call edi
mov byte [ebp + eax - 0x48], 0
mov eax, 0x3bf
call fcn.00427180
mov eax, dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0xb0], eax
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x76]
movzx eax, al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x58f9b0
call fcn.00427ef0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov ecx, dword [ebp - 0x94]
call ecx
sub esp, 8
mov dword [esp], esi
mov dword [ebp - 0x80], edi
call edi
lea ecx, [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov eax, dword [ebp - 0x8c]
call eax
mov edi, eax
sub esp, 0x14
mov eax, 0x3c5
call fcn.00427180
test edi, edi
jne 0x42b9e0
mov dword [esp + 4], str.WriteConsoleA_failed_n
mov dword [esp], edi
call fcn.00427ef0
cmp word [ebp - 0x6c], 0
je 0x42baa0
lea esi, [ebp - 0x6c]
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x42b358
sub eax, esi
sar eax, 1
mov dword [esp + 8], eax
lea edi, [ebp - 0x7c]
lea eax, [ebp - 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterW]
mov dword [ebp - 0x9c], eax
call eax
sub esp, 0x14
mov edi, eax
test eax, eax
je 0x42b420
mov eax, dword [0x8f0770]
mov edx, dword [ebp - 0x7c]
test eax, eax
sete cl
cmp word [ebp - 0x6c], 0
je 0x42baaa
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x42b3c0
sub eax, esi
sar eax, 1
shr eax, 1
cmp eax, edx
jne 0x42b420
test cl, cl
je 0x42b420
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x42b3e0
sub eax, esi
mov dword [esp + 8], eax
lea edi, [ebp - 0x7c]
lea eax, [ebp - 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 0x14
mov edi, eax
lea esi, [esi]
nop
mov eax, 0x3cc
call fcn.00427180
mov dword [esp + 4], str.ReadConsoleOutputCharacterW_failed_n
mov dword [esp], edi
call fcn.00427ef0
mov eax, 0x3cd
call fcn.00427180
cmp word [ebp - 0x6c], 0
je 0x42ba80
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x42b458
sub eax, esi
mov ecx, dword [ebp - 0x7c]
mov edx, esi
sar eax, 1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x42b470
sub edx, esi
sar edx, 1
mov dword [esp + 0xc], eax
xor eax, eax
cmp ecx, edx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.unexpected_len__lu__u_n
call fcn.00427ef0
mov eax, 0x3ce
call fcn.00427180
cmp word [ebp - 0x6c], 0
je 0x42ba90
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x42b4b8
sub eax, esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
lea edi, [ebp - 0x71]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.string_does_not_match_the_pattern_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x3d5
call fcn.00427180
mov dword [esp], 0x4e3
mov eax, dword [ebp - 0xa0]
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.Cannot_set_output_cp_to_1251_n
call fcn.00427ef0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov ecx, dword [ebp - 0x94]
call ecx
sub esp, 8
mov dword [esp], edi
mov ecx, dword [ebp - 0x80]
call ecx
lea edx, [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov eax, dword [ebp - 0x8c]
call eax
mov dword [ebp - 0xb4], eax
sub esp, 0x14
mov eax, 0x3d8
call fcn.00427180
mov edx, dword [ebp - 0xb4]
test edx, edx
je 0x42b596
mov dword [esp], edi
mov ecx, dword [ebp - 0x80]
call ecx
xor edx, edx
cmp dword [ebp - 0x7c], eax
sete dl
mov dword [esp], edx
mov dword [esp + 4], str.WriteConsoleA_failed_n
call fcn.00427ef0
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
lea ecx, [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x9c]
call ecx
mov dword [ebp - 0xb4], eax
sub esp, 0x14
mov eax, 0x3da
call fcn.00427180
mov edx, dword [ebp - 0xb4]
test edx, edx
je 0x42b606
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
xor edx, edx
cmp dword [ebp - 0x7c], eax
sete dl
mov dword [esp], edx
mov dword [esp + 4], str.ReadConsoleOutputCharacterW_failed_n
call fcn.00427ef0
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x34], cx
mov eax, 0x3dc
call fcn.00427180
lea ecx, [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp], ecx
mov ecx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [ebp - 0xb4], ecx
call ecx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.string_does_not_match_the_pattern_n
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x88]
mov dword [esp], ecx
mov edx, dword [ebp - 0x94]
call edx
sub esp, 8
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
lea edx, [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov ecx, dword [ebp - 0x88]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x8c]
call ecx
mov dword [ebp - 0xbc], eax
sub esp, 0x14
mov eax, 0x3e1
call fcn.00427180
mov edx, dword [ebp - 0xbc]
test edx, edx
je 0x42b6db
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
xor edx, edx
cmp dword [ebp - 0x7c], eax
sete dl
mov dword [esp], edx
mov dword [esp + 4], str.WriteConsoleA_failed_n
call fcn.00427ef0
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
lea ecx, [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x88]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x9c]
call ecx
mov dword [ebp - 0x9c], eax
sub esp, 0x14
mov eax, 0x3e3
call fcn.00427180
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x42b74b
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
xor edx, edx
cmp dword [ebp - 0x7c], eax
sete dl
mov dword [esp], edx
mov dword [esp + 4], str.ReadConsoleOutputCharacterW_failed_n
call fcn.00427ef0
mov dword [esp], edi
mov edi, dword [ebp - 0x80]
call edi
xor edx, edx
mov word [ebp + eax*2 - 0x34], dx
mov eax, 0x3e5
call fcn.00427180
lea eax, [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.string_does_not_match_the_pattern_n
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
mov esi, dword [ebp - 0x98]
call esi
mov eax, dword [ebp - 0x84]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x58f33b
mov eax, dword [ebp - 0xa8]
call eax
sub esp, 0x1c
mov esi, eax
mov eax, 0x3ee
call fcn.00427180
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.CONOUT__is_not_opened_n
setne al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x94]
call eax
lea eax, [ebp - 0x62]
sub esp, 8
mov dword [esp], eax
mov dword [ebp - 0x80], edi
call edi
lea ecx, [ebp - 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x62]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x8c]
call eax
mov edi, eax
sub esp, 0x14
mov eax, 0x3f3
call fcn.00427180
test edi, edi
je 0x42b898
lea eax, [ebp - 0x62]
mov dword [esp], eax
mov edi, dword [ebp - 0x80]
call edi
cmp dword [ebp - 0x7c], eax
sete al
movzx eax, al
mov edi, eax
mov dword [esp], edi
lea edi, [ebp - 0x7c]
mov dword [esp + 4], str.WriteConsoleA_failed_n
call fcn.00427ef0
lea eax, [ebp - 0x62]
mov dword [esp], eax
mov eax, dword [ebp - 0x80]
call eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edi, dword [ebp - 0x88]
mov dword [esp], edi
mov edi, dword [ebp - 0xb8]
call edi
mov edi, eax
sub esp, 0x14
mov eax, 0x3f6
call fcn.00427180
test edi, edi
jne 0x42ba00
mov dword [esp], edi
mov dword [esp + 4], str.ReadConsoleOutputCharacterA_failed_n
call fcn.00427ef0
lea eax, [ebp - 0x62]
mov dword [esp], eax
mov eax, dword [ebp - 0x80]
call eax
mov edi, dword [0x8f0770]
mov byte [ebp + eax - 0x48], 0
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
mov edi, dword [ebp - 0xb0]
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x42b98c
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x3f8
lea eax, [ebp - 0x62]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
lea ecx, [ebp - 0x62]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], ecx
movzx eax, al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x58f9b0
call fcn.00427ef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x42b940
mov dword [esp], esi
mov eax, dword [ebp - 0x98]
call eax
mov eax, dword [ebp - 0x88]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
call eax
mov eax, dword [ebp - 0xac]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0xa0]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov edi, dword [ebp - 0x80]
call edi
cmp dword [ebp - 0x7c], eax
sete al
movzx eax, al
mov edi, eax
jmp 0x42b335
lea edi, [ebp - 0x62]
mov dword [esp], edi
mov eax, dword [ebp - 0x80]
call eax
cmp dword [ebp - 0x7c], eax
sete al
movzx eax, al
mov edi, eax
jmp 0x42b8f2
mov eax, 0x338
call fcn.00427180
mov dword [esp], str.Codepage_866_not_available_n
call fcn.00427740
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp word [ebp - 0x2e], 0xa
sete bl
jmp 0x42b160
xor eax, eax
cmp word [ebp - 0x2e], 5
sete al
mov esi, eax
jmp 0x42b0fe
mov eax, 0x342
call fcn.00427180
mov dword [esp], str.SetConsoleOutputCP_is_not_implemented_n
call fcn.00427ec0
jmp 0x42b9d5
mov ecx, dword [ebp - 0x7c]
xor edx, edx
xor eax, eax
jmp 0x42b47d
xor eax, eax
jmp 0x42b4c3
xor eax, eax
lea esi, [ebp - 0x6c]
jmp 0x42b365
or eax, edx
jne 0x42b420
jmp 0x42b3eb