Function at 0x4270c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042c3d8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4270ed
inc eax
jmp 0x4271d8
cmp edi, 2
push esi
mov esi, 0x448950
jne 0x427121
cmp dword [0x4496a0], 0
push dword [ebp + 0x1c]
push ebx
je 0x42710d
push str.WARNING___POTENTIAL_SECURITY_BREACH__nThe_servers_host_key_does_not_match_the_one_PuTTY_has_ncached_in_the_registry._This_means_that_either_the_nserver_administrator_has_changed_the_host_key__or_you_nhave_actually_connected_to_another_computer_pretending_nto_be_the_server._nThe_new__s_key_fingerprint_is:_n_s_nConnection_abandoned._n
push esi
jmp 0x427139
push str.WARNING___POTENTIAL_SECURITY_BREACH__nThe_servers_host_key_does_not_match_the_one_PuTTY_has_ncached_in_the_registry._This_means_that_either_the_nserver_administrator_has_changed_the_host_key__or_you_nhave_actually_connected_to_another_computer_pretending_nto_be_the_server._nThe_new__s_key_fingerprint_is:_n_s_nIf_you_were_expecting_this_change_and_trust_the_new_key__nenter__y__to_update_PuTTYs_cache_and_continue_connecting._nIf_you_want_to_carry_on_connecting_but_without_updating_nthe_cache__enter__n_._nIf_you_want_to_abandon_the_connection_completely__press_nReturn_to_cancel._Pressing_Return_is_the_ONLY_guaranteed_nsafe_choice._nUpdate_cached_key___y_n__Return_cancels_connection_
push esi
call fcn.0042ef33
push esi
call fcn.0042e440
add esp, 0x14
cmp edi, 1
jne 0x42715a
cmp dword [0x4496a0], 0
push dword [ebp + 0x1c]
push ebx
je 0x427146
push str.The_servers_host_key_is_not_cached_in_the_registry._You_nhave_no_guarantee_that_the_server_is_the_computer_you_nthink_it_is._nThe_servers__s_key_fingerprint_is:_n_s_nConnection_abandoned._n
push esi
call fcn.0042ef33
add esp, 0x10
jmp 0x4271d5
push str.The_servers_host_key_is_not_cached_in_the_registry._You_nhave_no_guarantee_that_the_server_is_the_computer_you_nthink_it_is._nThe_servers__s_key_fingerprint_is:_n_s_nIf_you_trust_this_host__enter__y__to_add_the_key_to_nPuTTYs_cache_and_carry_on_connecting._nIf_you_want_to_carry_on_connecting_just_once__without_nadding_the_key_to_the_cache__enter__n_._nIf_you_do_not_trust_this_host__press_Return_to_abandon_the_nconnection._nStore_key_in_cache___y_n_
push esi
call fcn.0042ef33
push esi
call fcn.0042e440
add esp, 0x14
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
or eax, 7
push eax
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x1f
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
push ebx
call edi
mov al, byte [ebp - 0x28]
test al, al
je 0x4271c8
cmp al, 0xd
je 0x4271c8
cmp al, 0xa
je 0x4271c8
cmp al, 0x79
je 0x4271af
cmp al, 0x59
jne 0x4271c3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042c5fb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4271d7
push 0x443c10
push esi
call fcn.0042ef33
pop ecx
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret