Function at 0x41e040
Capabilities:
Manipulate console buffer
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push 0x428e50
mov dword [ebp - 4], 4
mov dword [ebp - 8], edi
call fcn.004017e4
push str.ISSUE_SECTION
call fcn.004019a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 8
mov dword [0x42e0cc], 0x5000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push eax
call esi
push 0x429558
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0x7000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x429570
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0x9000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x42958c
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0xb000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x4295a8
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0xe000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Enter_a_Choice:
call fcn.004019a4
add esp, 4
call fcn.0041c920
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x41e13d
jmp dword [eax*4 + 0x41ea44]
push 0x428e50
call fcn.004017e4
add esp, 4
push 0x428e50
call fcn.004017e4
add esp, 4
mov dword [0x42e0cc], 0x4000f
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Issue_Book_section
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0x6000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Enter_the_Book_Id:
call fcn.004019a4
lea eax, [ebp - 0x10]
push eax
push 0x4291c8
call fcn.004013a0
push 0x429604
push str.Bibek.dat
call fcn.00401b2a
push 0x4291cc
push str.Issue.dat
mov dword [0x42f28c], eax
call fcn.00401b2a
mov ecx, dword [ebp - 0x10]
add esp, 0x1c
mov dword [0x42f294], eax
call fcn.0041d460
test eax, eax
jne 0x41e3d8
mov dword [0x42e0cc], 0x8000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.The_book_record_is_available
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0x9000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f260]
push str.There_are__d_unissued_books_in_library
call fcn.004019a4
add esp, 8
mov dword [0x42e0cc], 0xa000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x42f238
push str.The_name_of_book_is__s
call fcn.004019a4
add esp, 8
mov dword [0x42e0cc], 0xb000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Enter_student_name:
call fcn.004019a4
push 0x42f224
push 0x4294ec
call fcn.004013a0
add esp, 0xc
mov dword [0x42e0cc], 0xc000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f27c]
push dword [0x42f274]
push dword [0x42f278]
push str.Issued_date_d__d__d
call fcn.004019a4
add esp, 0x10
mov dword [0x42e0cc], 0xd000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f220]
push str.The_BOOK_of_ID__d_is_issued
call fcn.004019a4
mov edi, dword [0x42f278]
mov ecx, dword [0x42f274]
mov eax, dword [0x42f27c]
add edi, 0xf
add esp, 8
mov dword [0x42f284], edi
mov dword [0x42f280], ecx
mov dword [0x42f288], eax
cmp edi, 0x1e
jle 0x41e344
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, eax
sub edi, 0x1e
mov dword [0x42f280], ecx
mov dword [0x42f284], edi
cmp ecx, 0xc
jle 0x41e36d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [0x42f27c]
sub ecx, 0xc
mov dword [0x42f288], eax
mov dword [0x42f280], ecx
mov dword [0x42e0cc], 0xe000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f288]
push dword [0x42f280]
push dword [0x42f284]
push str.To_be_return:_d__d__d
call fcn.004019a4
push 2
push 0x6c
push dword [0x42f294]
call fcn.00402492
push dword [0x42f294]
push 1
push 0x6c
push 0x42f220
call fcn.00401fc4
push dword [0x42f294]
call fcn.0040257d
add esp, 0x30
mov edi, 1
jmp 0x41e400
test edi, edi
jne 0x41e400
mov dword [0x42e0cc], 0xb000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.No_record_found
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0xf000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Issue_any_more_Y_N_:
call fcn.004019a4
call fcn.004014f1
push eax
call fcn.00401680
call fcn.0041ca3d
push dword [0x42f28c]
mov bl, al
call fcn.0040257d
add esp, 0xc
cmp bl, 0x79
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
je 0x41e151
jmp 0x41ea09
push 0x428e50
call fcn.004017e4
push str.Issued_book_list_n
call fcn.004019a4
add esp, 8
mov dword [0x42e0cc], 0x20002
push dword [0x42e0cc]
mov edi, 2
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.STUDENT_NAME____CATEGORY____ID____BOOK_NAME____ISSUED_DATE____RETURN_DATE
call fcn.004019a4
push 0x429604
push str.Issue.dat
call fcn.00401b2a
push eax
push 1
push 0x6c
push 0x42f220
mov dword [0x42f294], eax
call fcn.00401d62
add esp, 0x1c
cmp eax, 1
jne 0x41e644
mov eax, dword [ebp - 4]
mov word [0x42e0cc], di
movzx edi, ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x42f224
push 0x4294ec
call fcn.004019a4
add esp, 8
mov eax, 0x12
mov word [0x42e0cc], ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f270]
push 0x4294ec
call fcn.004019a4
add esp, 8
mov eax, 0x1e
mov word [0x42e0cc], ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f220]
push 0x4291c8
call fcn.004019a4
add esp, 8
mov eax, 0x24
mov word [0x42e0cc], ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push 0x42f238
push 0x4294ec
call fcn.004019a4
add esp, 8
mov eax, 0x33
mov word [0x42e0cc], ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f27c]
push dword [0x42f274]
push dword [0x42f278]
push str._d__d__d
call fcn.004019a4
add esp, 0x10
mov eax, 0x41
mov word [0x42e0cc], ax
mov word [0x42e0ce], di
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f288]
push dword [0x42f280]
push dword [0x42f284]
push str._d__d__d
call fcn.004019a4
add esp, 0x10
mov dword [0x42e0cc], 0x190032
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push dword [0x42f294]
inc dword [ebp - 4]
push 1
push 0x6c
push 0x42f220
call fcn.00401d62
add esp, 0x10
mov edi, 2
cmp eax, 1
je 0x41e4c1
push dword [0x42f294]
call fcn.0040257d
add esp, 4
mov dword [0x42e0cc], 0x190001
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
call fcn.0041d9c0
jmp 0x41ea09
push 0x428e50
call fcn.004017e4
add esp, 4
mov dword [0x42e0cc], 0x6000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Enter_Book_ID:
call fcn.004019a4
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x4291c8
call fcn.004013a0
push 0x429604
push str.Issue.dat
call fcn.00401b2a
push eax
push 1
push 0x6c
push 0x42f220
mov dword [0x42f294], eax
call fcn.00401d62
add esp, 0x20
cmp eax, 1
jne 0x41e73e
lea ecx, [ecx]
mov eax, dword [0x42f220]
cmp eax, dword [ebp - 8]
jne 0x41e722
call fcn.0041cf10
mov dword [0x42e0cc], 0xc000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Press_any_key.......
call fcn.004019a4
add esp, 4
call fcn.0041c920
call fcn.0041cf10
mov edi, 1
push dword [0x42f294]
push 1
push 0x6c
push 0x42f220
call fcn.00401d62
add esp, 0x10
cmp eax, 1
je 0x41e6e0
call fcn.004014f1
push eax
call fcn.00401680
push dword [0x42f294]
call fcn.0040257d
add esp, 8
test edi, edi
jne 0x41e77f
mov dword [0x42e0cc], 0x8000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.No_Record_Found
call fcn.004019a4
add esp, 4
mov dword [0x42e0cc], 0xd000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Try_Another_Search__Y_N_
call fcn.004019a4
add esp, 4
call fcn.0041c920
cmp al, 0x79
je 0x41e6a4
jmp 0x41ea09
push 0x428e50
call fcn.004017e4
add esp, 4
mov edi, 0xc
jmp 0x41e7d0
mov dword [0x42e0cc], 0x5000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Enter_book_id_to_remove:
call fcn.004019a4
lea eax, [ebp - 0xc]
push eax
push 0x4291c8
call fcn.004013a0
push 0x429234
push str.Issue.dat
call fcn.00401b2a
push eax
push 1
push 0x6c
push 0x42f220
mov dword [0x42f294], eax
call fcn.00401d62
add esp, 0x24
cmp eax, 1
jne 0x41e9aa
mov edi, edi
mov eax, dword [0x42f220]
cmp eax, dword [ebp - 0xc]
jne 0x41e848
call fcn.0041cf10
mov byte [0x42f290], 0x74
jmp 0x41e855
cmp byte [0x42f290], 0x74
jne 0x41e966
mov dword [0x42e0cc], 0xc000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Do_You_Want_to_Remove_it__Y_N_
call fcn.004019a4
add esp, 4
call fcn.0041c920
cmp eax, 0x79
jne 0x41e95d
push 0x4292c0
push str.record.dat
call fcn.00401b2a
push dword [0x42f294]
mov edi, eax
call fcn.004012a0
push dword [0x42f294]
push 1
push 0x6c
push 0x42f220
call fcn.00401d62
add esp, 0x1c
cmp eax, 1
jne 0x41e907
nop
mov eax, dword [0x42f220]
cmp eax, dword [ebp - 0xc]
je 0x41e8eb
push 1
push 0
push dword [0x42f294]
call fcn.00402492
push edi
push 1
push 0x6c
push 0x42f220
call fcn.00401fc4
add esp, 0x1c
push dword [0x42f294]
push 1
push 0x6c
push 0x42f220
call fcn.00401d62
add esp, 0x10
cmp eax, 1
je 0x41e8c0
push dword [0x42f294]
call fcn.0040257d
push edi
call fcn.0040257d
push str.Issue.dat
call fcn.004018cc
push str.Issue.dat
push str.record.dat
call fcn.004010e4
add esp, 0x14
mov dword [0x42e0cc], 0xe000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.The_issued_book_is_removed_from_list
call fcn.004019a4
add esp, 4
mov edi, 0xc
cmp byte [0x42f290], 0x74
je 0x41e98a
mov dword [0x42e0cc], 0xf000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.No_Record_Found
call fcn.004019a4
add esp, 4
push dword [0x42f294]
push 1
push 0x6c
push 0x42f220
call fcn.00401d62
add esp, 0x10
cmp eax, 1
je 0x41e830
mov dword [0x42e0cc], 0x10000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str.Delete_any_more__Y_N_
call fcn.004019a4
add esp, 4
call fcn.0041c920
cmp al, 0x79
je 0x41e7d0
mov dword [0x42e0cc], 0x12000a
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str._aWrong_Entry__
call fcn.004019a4
add esp, 4
call fcn.0041c920
call fcn.0041e040
mov dword [0x42e0cc], 0x1e0001
push dword [0x42e0cc]
push 0xfffffffffffffff5
call ebx
push eax
call esi
push str._Press_ENTER_to_return_to_main_menu
call fcn.004019a4
add esp, 4
pop edi
pop esi
pop ebx
call fcn.0041c920
cmp eax, 0xd
jne 0x41ea30
call fcn.0041f8b0
mov esp, ebp
pop ebp
ret