Function at 0x4330f0
Capabilities:
Read file on windows
Set console window title
Write file on windows

Disassembly:
push ebp
mov eax, 0x1029
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x74
call fcn.00427180
mov ebx, dword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
call ebx
mov dword [esp + 4], str.ConsoleHandle_is_NULL_n
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x102a
call fcn.00427180
mov edi, dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
mov dword [esp + 4], 0
mov dword [esp], 0x426e10
mov dword [ebp - 0x64], edi
call edi
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.dummy_ctrl_handler_shouldnt_be_set_n
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 1
mov dword [esp], 0x426e10
call edi
sub esp, 8
mov esi, eax
mov eax, 0x102c
call fcn.00427180
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.SetConsoleCtrlHandler_failed:__lu_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00427ef0
mov eax, dword [0x707bac]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x433b08
call dword [sym.imp.kernel32.dll_FreeConsole]
mov esi, eax
mov eax, 0x1034
call fcn.00427180
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str.FreeConsole_failed:__lu_n
mov dword [esp + 8], eax
call fcn.00427ef0
mov eax, 0x1036
call fcn.00427180
call ebx
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x10]
call ebx
mov dword [esp + 4], str.ConsoleHandle___p_n
mov dword [esp + 8], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x18], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x58f33b
call ebx
sub esp, 0x1c
mov esi, eax
mov eax, 0x103a
call fcn.00427180
mov edx, dword [edi + 0x34]
xor eax, eax
cmp esi, 0xffffffff
je 0x433b30
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreateFileA_failed:__lu_n
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], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x590a3e
call ebx
sub esp, 0x1c
mov esi, eax
mov eax, 0x103f
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
cmp esi, 0xffffffff
je 0x433bd0
mov dword [esp + 8], ecx
mov dword [esp + 4], str.CreateFileA_failed:__lu_n
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], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x590a45
call ebx
sub esp, 0x1c
mov esi, eax
mov eax, 0x1044
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
cmp esi, 0xffffffff
je 0x433ba0
mov dword [esp + 8], ecx
mov dword [esp + 4], str.CreateFileA_failed:__lu_n
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], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x590a45
call ebx
sub esp, 0x1c
mov ebx, eax
mov eax, 0x1049
call fcn.00427180
xor eax, eax
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x34]
cmp ebx, 0xffffffff
je 0x433b70
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreateFileA_failed:__lu_n
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], 3
mov dword [esp], 0xc0000000
call dword [sym.imp.kernel32.dll_CreateConsoleScreenBuffer]
sub esp, 0x14
mov ebx, eax
mov eax, 0x1050
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
cmp ebx, 0xffffffff
je 0x433b60
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.CreateConsoleScreenBuffer_returned:__p___lu__n
mov ebx, dword fs:[0x18]
call fcn.00427ef0
mov dword [ebx + 0x34], 0xdeadbeef
call dword [sym.imp.kernel32.dll_GetConsoleCP]
mov esi, eax
mov eax, 0x1055
call fcn.00427180
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.cp___x_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x1056
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x590a83
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0xdeadbeef
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov esi, eax
mov eax, 0x105a
call fcn.00427180
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.cp___x_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x105b
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x590a83
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0xdeadbeef
mov esi, dword [sym.imp.kernel32.dll_GetOEMCP]
call esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleCP]
sub esp, 4
mov edi, eax
mov eax, 0x105f
call fcn.00427180
mov edx, dword [ebx + 0x34]
xor eax, eax
test edi, edi
jne 0x43354d
xor eax, eax
cmp edx, 6
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.SetConsoleCP_returned__x__lu__n
mov edi, dword fs:[0x18]
call fcn.00427ef0
mov dword [edi + 0x34], 0xdeadbeef
call esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleOutputCP]
sub esp, 4
mov ebx, eax
mov eax, 0x1063
call fcn.00427180
mov edx, dword [edi + 0x34]
xor eax, eax
test ebx, ebx
jne 0x43359e
xor eax, eax
cmp edx, 6
sete al
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.SetConsoleCP_returned__x__lu__n
call fcn.00427ef0
mov eax, dword [0x707bac]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4335d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0xc0c0c0c0
mov ebx, dword fs:[0x18]
mov dword [ebp - 0x48], 0xc0c0c0c0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [ebp - 0x44], 0xc0c0c0c0
mov dword [ebp - 0x40], 0xc0c0c0c0
mov dword [ebp - 0x3c], 0xc0c0c0c0
mov dword [ebp - 0x38], 0xc0c0c0c0
mov dword [ebp - 0x34], 0xc0c0c0c0
mov dword [ebp - 0x30], 0xc0c0c0c0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetConsoleTitleW]
sub esp, 8
mov dword [ebp - 0x54], eax
mov eax, 0x106a
call fcn.00427180
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.GetConsoleTitleW_returned__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x106b
call fcn.00427180
mov dword [esp + 4], str.title_byffer_changed_n
xor eax, eax
cmp word [ebp - 0x4c], 0xc0c0
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x106c
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x590a83
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], 0x590aea
call dword [sym.imp.kernel32.dll_SetConsoleTitleW]
sub esp, 4
mov esi, eax
mov eax, 0x1070
call fcn.00427180
mov edx, dword [ebx + 0x34]
xor eax, eax
test esi, esi
jne 0x4336dc
xor eax, eax
cmp edx, 6
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.SetConsoleTitleW_returned__x__lu__n
mov ebx, dword fs:[0x18]
call fcn.00427ef0
mov dword [ebx + 0x34], 0xdeadbeef
call dword [sym.imp.kernel32.dll_GetConsoleWindow]
mov esi, eax
mov eax, 0x1074
call fcn.00427180
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.hwnd___p_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x1075
call fcn.00427180
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x590a83
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GenerateConsoleCtrlEvent]
sub esp, 8
mov esi, eax
mov eax, 0x1078
call fcn.00427180
mov edx, dword [ebx + 0x34]
xor eax, eax
test esi, esi
jne 0x43378e
xor eax, eax
cmp edx, 6
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.GenerateConsoleCtrlEvent_returned__x__lu__n
mov dword [esp], eax
call fcn.00427ef0
mov edi, dword [sym.imp.kernel32.dll_SetStdHandle]
mov dword [esp + 4], 0xdeadbeef
mov dword [esp], 0xfffffff6
call edi
mov esi, dword [sym.imp.kernel32.dll_GetConsoleInputWaitHandle]
sub esp, 8
call esi
mov ebx, eax
mov eax, 0x107d
call fcn.00427180
xor eax, eax
cmp ebx, 0xdeadbeef
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.GetConsoleInputWaitHandle_returned__p_n
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff6
call edi
sub esp, 8
call esi
lea esi, [ebp - 0x54]
mov ebx, eax
mov eax, 0x1080
call fcn.00427180
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.GetConsoleInputWaitHandle_returned__p_n
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov ebx, eax
mov eax, 0x1083
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x433881
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_returned__x__lu_n
call fcn.00427ef0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
sub esp, 4
mov ebx, eax
mov eax, 0x1087
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x4338cc
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_returned__x__lu_n
call fcn.00427ef0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x58f52a
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov ebx, eax
mov eax, 0x108b
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x433933
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 0xc], ecx
lea edi, [ebp - 0x50]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_returned__x__lu_n
call fcn.00427ef0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.kernel32.dll_GetConsoleMode]
mov dword [esp], eax
call esi
sub esp, 8
mov ebx, eax
mov eax, 0x108f
call fcn.00427180
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x433987
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.GetConsoleMode_returned__x__lu_n
call fcn.00427ef0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call esi
sub esp, 8
mov ebx, eax
mov eax, 0x1092
call fcn.00427180
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test ebx, ebx
jne 0x4339d2
xor eax, eax
cmp edx, 6
sete al
mov dword [ebp - 0x60], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.GetConsoleMode_returned__x__lu_n
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00427ef0
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.kernel32.dll_GetFileType]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
mov eax, 0x1096
call fcn.00427180
xor eax, eax
cmp ebx, 2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.GetFileType_returned__lu_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
mov eax, 0x1098
call fcn.00427180
xor eax, eax
cmp ebx, 2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.GetFileType_returned__lu_n
mov dword [esp], eax
call fcn.00427ef0
mov ebx, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test ebx, ebx
mov ebx, dword [ebp - 0x64]
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x433ace
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x109b
mov dword [esp + 4], 0
mov dword [esp], 0x426e10
call ebx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.FreeConsole___should_have_reset_ctrl_handlers_list_n
movzx eax, al
mov dword [esp], eax
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 0x433a88
mov eax, dword [ebp - 0x58]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
xor eax, eax
call fcn.00428af0
mov edx, 1
mov dword [ebp - 0x58], eax
mov eax, 1
call fcn.00428af0
mov dword [ebp - 0x5c], eax
jmp 0x4331c0
mov eax, 1
cmp edx, 6
je 0x433282
mov esi, dword [0x8f0770]
cmp edx, 5
sete cl
xor eax, eax
test esi, esi
sete al
and eax, ecx
jmp 0x433282
xor eax, eax
cmp ecx, 6
sete al
jmp 0x43343a
mov eax, 1
cmp edx, 6
je 0x4333d5
mov ebx, dword [0x8f0770]
cmp edx, 2
sete cl
xor eax, eax
test ebx, ebx
sete al
and eax, ecx
jmp 0x4333d5
mov eax, 1
cmp ecx, 6
je 0x433364
mov esi, dword [0x8f0770]
test esi, esi
sete al
xor edx, edx
cmp ecx, 5
sete dl
and eax, edx
jmp 0x433364
mov eax, 1
cmp ecx, 6
je 0x4332f3
mov edi, dword [0x8f0770]
test edi, edi
sete al
xor edx, edx
cmp ecx, 5
sete dl
and eax, edx
jmp 0x4332f3