Function at 0x401145
Capabilities:
Query environment variable
Terminate process

Disassembly:
jmp 0x4088f0
sub esp, 0x5c
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [eax]
push ebx
push esi
mov dword [0x79a858], eax
call fcn.0041a2f0
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push str.MYSQL_PS1
mov dword [0x797c2c], 0x4a70a0
call esi
add esp, 4
test eax, eax
je 0x40893d
push str.MYSQL_PS1
call esi
add esp, 4
jmp 0x408942
mov eax, str.mysql_
push 0x10
push eax
call fcn.0040aaf0
push 0x10
push eax
mov dword [0x797c3c], eax
call fcn.0040aaf0
push str.stdout
push 0x796e80
mov dword [0x797c28], eax
mov dword [0x797308], 0
mov byte [0x7979e0], 0
call fcn.00410fe0
push str.PAGER
call esi
add esp, 0x1c
test eax, eax
je 0x4089b6
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408990
sub ecx, esi
je 0x4089b6
push eax
mov ebx, 1
push 0x797318
mov byte [0x797bfc], bl
call fcn.00410fe0
add esp, 8
jmp 0x4089bb
mov ebx, 1
mov esi, dword [sym.imp.MSVCR90.dll__isatty]
push 0
call esi
add esp, 4
test eax, eax
je 0x4089de
push ebx
call esi
add esp, 4
test eax, eax
je 0x4089de
mov byte [0x7972f1], bl
jmp 0x4089f1
mov byte [0x7972f0], bl
mov dword [0x797c0c], ebx
mov byte [0x797be8], 0
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
mov dword [0x7972e0], ebx
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll__fileno]
push eax
call dword [sym.imp.MSVCR90.dll__dup]
add esp, 8
cmp eax, 0xffffffff
jne 0x408a26
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
jmp 0x408a2d
push eax
call dword [sym.imp.MSVCR90.dll__close]
add esp, 4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0x4aaa40
push 0x491774
call fcn.00414b40
add esp, 0x10
test eax, eax
je 0x408a61
push 0
call fcn.00419e80
add esp, 4
push ebx
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [esp + 8]
push eax
mov dword [0x797084], eax
mov eax, dword [esp + 0x6c]
push eax
call fcn.00404e70
add esp, 8
test eax, eax
je 0x408a99
mov ecx, dword [0x797084]
push ecx
call fcn.004137b0
push 0
call fcn.00419e80
add esp, 8
push ebx
call dword [sym.imp.MSVCR90.dll_exit]
cmp byte [0x7972f0], 0
je 0x408aef
cmp dword [0x7972ec], 0
jne 0x408aef
call esi
push eax
push 0x40000000
call fcn.00401032
add esp, 8
mov dword [0x7972ec], eax
test eax, eax
jne 0x408aef
push eax
push ebx
push str.Cant_initialize_batch_readline___may_be_the_input_source_is_a_directory_or_a_block_device.
xor ebx, ebx
call fcn.00403ca0
mov edx, dword [0x797084]
push edx
call fcn.004137b0
push ebx
call fcn.00419e80
add esp, 0x14
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [0x797c6c]
push 0x4aaa4c
push 0x797518
push eax
call fcn.00418f80
test eax, eax
je 0x408b14
xor esi, esi
call fcn.00403ea0
jmp 0x408a7c
push 0x200
mov ecx, 0x4abf30
call fcn.00401113
push 0x80
push 0x79728c
call fcn.00401136
push 0
push 0x4000
push 0x7972c0
call fcn.0040a5f0
push 0x3c8
push 0
push 0x797618
call sub.MSVCR90.dll_memset
mov edx, dword [0x797c0c]
mov eax, dword [0x797c24]
mov ecx, dword [0x7972bc]
push edx
mov edx, dword [0x797080]
push eax
mov eax, dword [0x797c20]
push ecx
push edx
call fcn.00406120
add esp, 0x30
test eax, eax
je 0x408b93
push 0xffffffffffffffff
mov byte [0x797bea], bl
mov dword [0x7972e0], ebx
call fcn.0040111d
cmp byte [0x7972f0], 0
jne 0x408ba2
mov byte [0x797be8], bl
cmp byte [0x797bfd], 0
mov esi, dword [sym.imp.MSVCR90.dll_signal]
je 0x408bb4
push ebx
jmp 0x408bb9
push 0x401023
push 2
call esi
add esp, 8
push edi
push fcn.0040111d
push 0xf
call esi
push 0
push 0
push str.Welcome_to_the_MySQL_monitor.__Commands_end_with___or_g.
xor ebx, ebx
call fcn.00403ca0
mov esi, dword [0x4abf38]
mov edi, dword [0x4abf30]
add esp, 0x14
mov ebx, 0x797618
call fcn.004027c0
push eax
push ebx
call fcn.004157a0
push eax
push str.Your_MySQL_connection_id_is__lu_nServer_version:__s_n
push esi
push edi
call dword [sym.imp.MSVCR90.dll__snprintf]
mov eax, dword [0x4abf30]
push 0
push 0
push eax
xor ebx, ebx
call fcn.00403ca0
add esp, 0x20
mov ecx, str.2018
mov eax, str.2000
pop edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408c47
test dl, dl
je 0x408c43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408c47
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c27
xor eax, eax
jmp 0x408c4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, str.Copyright__c__2000__2018__Oracle_and_or_its_affiliates._All_rights_reserved._n_nOracle_is_a_registered_trademark_of_Oracle_Corporation_and_or_its_naffiliates._Other_names_may_be_trademarks_of_their_respective_nowners._n
jne 0x408c5a
mov eax, str.Copyright__c__2000__Oracle_and_or_its_affiliates._All_rights_reserved._n_nOracle_is_a_registered_trademark_of_Oracle_Corporation_and_or_its_naffiliates._Other_names_may_be_trademarks_of_their_respective_nowners._n
push 0
push 0
push eax
xor ebx, ebx
call fcn.00403ca0
push str.Type_help__or_h_for_help._Type_c_to_clear_the_current_input_statement._n
lea ecx, [esp + 0x20]
push 0x492fe0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
push ebx
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.00403ca0
cmp byte [0x7972f0], bl
sete al
movzx ecx, al
push ecx
call fcn.00408210
add esp, 0x28
mov dword [0x7972e0], eax
cmp byte [0x797bf7], bl
je 0x408cae
call fcn.00401fa0
push 0
call fcn.0040111d
int3