Function at 0x43f870
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x300], 0
mov al, byte [0x500a3c]
mov byte [ebp - 0x11c], al
push 0xfe
push 0
lea ecx, [ebp - 0x11b]
push ecx
call fcn.004b6780
add esp, 0xc
mov dl, byte [0x500a3d]
mov byte [ebp - 0x21c], dl
push 0xfe
push 0
lea eax, [ebp - 0x21b]
push eax
call fcn.004b6780
add esp, 0xc
mov cl, byte [0x500a3e]
mov byte [ebp - 0x1c], cl
xor edx, edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov dword [ebp - 0x13], edx
mov word [ebp - 0xf], dx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
cmp dword [0x54bfa0], 1
jne 0x43f967
jmp 0x43ff8f
cmp dword [0x527380], 1
je 0x43f982
cmp dword [0x526d24], 1
jne 0x43f987
call fcn.0040a7b0
test eax, eax
jne 0x43f987
jmp 0x43ff8f
cmp dword [ebp + 0xc], 0
jne 0x43f992
jmp 0x43ff8f
cmp dword [ebp + 0x10], 0
jne 0x43f99d
jmp 0x43ff8f
cmp dword [ebp + 0x10], 0x63
jne 0x43f9a8
jmp 0x43ff8f
mov eax, dword [ebp + 8]
add eax, 0x52
push eax
call fcn.004b5f60
add esp, 4
cmp eax, 8
je 0x43f9dd
push 0x500a3f
push 0x500a40
push 0x4e2b80
push str.Invalid_Class_Path_ID__4_
call fcn.00458fb0
add esp, 0x10
jmp 0x43ff8f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b5f60
add esp, 4
cmp eax, 8
je 0x43fa0f
push 0x500a41
push 0x500a42
push 0x4e2bac
push str.Invalid_Student_Path_ID__4_
call fcn.00458fb0
add esp, 0x10
jmp 0x43ff8f
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b5f60
add esp, 4
cmp eax, 8
je 0x43fa25
jmp 0x43ff8f
mov eax, dword [ebp + 0x10]
push eax
call fcn.00457490
add esp, 4
cmp eax, 1
jne 0x43fa3b
jmp 0x43ff8f
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 0x59
cmp dword [ecx + 0x81dfc8], 2
jne 0x43fa6f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00440300
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.004717c0
add esp, 4
jmp 0x43ff8f
cmp dword [ebp + 0x10], 0x62
jne 0x43fa7c
mov dword [ebp + 0x10], 0x32
mov eax, dword [ebp + 0x10]
push eax
call fcn.004575b0
add esp, 4
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0
jne 0x43fa9c
jmp 0x43ff8f
cmp dword [0x54e958], 0
je 0x43fab3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004751e0
add esp, 8
mov edx, dword [ebp + 0xc]
movsx eax, word [edx + 0xda4a]
test eax, eax
je 0x43fb0f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0043f6e0
add esp, 0xc
cmp dword [0x54e680], 0
jne 0x43faf5
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x180], 0
mov dword [0x1861600], 0
cmp dword [0x4e1478], 1
jne 0x43fb0f
mov edx, dword [ebp + 0xc]
push edx
call fcn.004717c0
add esp, 4
jmp 0x43ff8f
mov eax, dword [ebp + 0x10]
push eax
call fcn.004575b0
add esp, 4
mov dword [ebp - 0x2f0], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00431540
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
push 0x5c
mov ecx, dword [ebp + 8]
add ecx, 0x52
push ecx
push 0x5c
lea edx, [ebp - 0x1c]
push edx
push 0x4f93d8
push 0x4e2bd8
lea eax, [ebp - 0x11c]
push eax
call fcn.004b6e08
add esp, 0x20
cmp dword [0x54e958], 1
jne 0x43fbc5
push 0x5c
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5c
push 0x4f93d8
call fcn.0042b620
add esp, 4
push eax
push 0x4e2bf0
push 0x526f50
call fcn.004b6e08
add esp, 0x18
push 0x4e2bfc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00475170
add esp, 8
push 0x526f50
call fcn.00419870
add esp, 4
push 0x526f50
push 0x4e2c0c
lea eax, [ebp - 0x11c]
push eax
call fcn.004b6e08
add esp, 0xc
push 1
push 0x4e2c18
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00419d20
add esp, 0xc
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jne 0x43fc5e
lea edx, [ebp - 0x318]
push edx
push 0
push 2
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x500a43
lea edx, [ebp - 0x11c]
push edx
push 0
call fcn.00497900
add esp, 0x20
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x43fc5e
push 1
push 0x4e2c1c
lea eax, [ebp - 0x11c]
push eax
call fcn.00419d20
add esp, 0xc
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
je 0x43fc5e
push 0
mov ecx, dword [ebp - 0x2e8]
push ecx
call fcn.00462010
add esp, 8
cmp dword [ebp - 0x2e8], 0
jne 0x43fc86
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.ERROR:_Write_Lock_Info:_Couldnt_open_file___d____s_
push 1
call fcn.004417b0
add esp, 0x10
jmp 0x43ff83
mov ecx, dword [ebp - 0x2e8]
push ecx
call fcn.0045c650
add esp, 4
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x2f0]
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + edx*2 + 0xd658]
cmp ecx, 0xffffffff
jne 0x43fce4
mov edx, dword [ebp - 0x304]
add edx, 1
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp - 0x2f4]
mov word [ecx + eax*2 + 0xd658], dx
mov dword [ebp - 0x30c], 1
jmp 0x43fcfb
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + eax*2 + 0xd658]
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x2f4]
add eax, 3
cmp eax, dword [ebp - 0x304]
jle 0x43fd55
mov ecx, dword [ebp - 0x2f4]
add ecx, 3
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call fcn.00462010
add esp, 8
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + 0xda4c]
mov edx, dword [ebp - 0x2f4]
add edx, 3
cmp ecx, edx
jge 0x43fd55
mov eax, dword [ebp - 0x2e8]
push eax
call fcn.0045c650
add esp, 4
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xda4c], ax
mov edx, 2
imul edx, edx, 0
mov eax, 1
mov word [ebp + edx - 0xc], ax
mov ecx, 2
shl ecx, 0
mov dx, word [ebp + 0x10]
mov word [ebp + ecx - 0xc], dx
mov eax, dword [ebp - 0x2f4]
sub eax, 1
imul eax, eax, 0xc8
add eax, 4
mov dword [ebp - 0x2f8], eax
push 0
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call fcn.004b8f82
add esp, 0xc
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2ec], 1
jmp 0x43fdcd
mov eax, dword [ebp - 0x2ec]
add eax, 1
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 4
jg 0x43fe66
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x2ec]
sub edx, 1
imul edx, edx, 0xc2
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2e8]
push eax
push 0xc8
push 1
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.004b8e47
add esp, 0x10
push 0xc2
mov edx, dword [ebp - 0x314]
add edx, 6
push edx
mov eax, dword [ebp - 0x2f0]
imul eax, eax, 0x308
add eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x228]
push edx
call fcn.004b6ebb
add esp, 0xc
test eax, eax
je 0x43fe52
jmp 0x43fe66
mov eax, dword [ebp - 0x300]
add eax, 1
mov dword [ebp - 0x300], eax
jmp 0x43fdbe
push 0
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call fcn.004b8f82
add esp, 0xc
cmp dword [ebp - 0x300], 4
jne 0x43fe94
cmp dword [ebp - 0x30c], 1
jne 0x43ff6a
mov dword [ebp - 0x2ec], 1
jmp 0x43feaf
mov eax, dword [ebp - 0x2ec]
add eax, 1
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 4
jg 0x43ff6a
mov ecx, 2
shl ecx, 1
mov dx, word [ebp - 0x2ec]
mov word [ebp + ecx - 0xc], dx
mov eax, dword [ebp - 0x2ec]
sub eax, 1
imul eax, eax, 0xc2
mov dword [ebp - 0x2fc], eax
cmp dword [0x500a4c], 0
je 0x43ff1b
push 0
mov ecx, dword [ebp - 0x2f8]
add ecx, 6
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call fcn.004b8f82
add esp, 0xc
mov eax, dword [ebp - 0x2f8]
add eax, 0xc8
mov dword [ebp - 0x2f8], eax
jmp 0x43ff32
mov ecx, dword [ebp - 0x2e8]
push ecx
push 6
push 1
lea edx, [ebp - 0xc]
push edx
call fcn.004b9519
add esp, 0x10
mov eax, dword [ebp - 0x2e8]
push eax
push 0xc2
push 1
mov ecx, dword [ebp - 0x2f0]
imul ecx, ecx, 0x308
add ecx, dword [ebp - 0x2fc]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x228]
push eax
call fcn.004b9519
add esp, 0x10
jmp 0x43fea0
mov ecx, dword [ebp - 0x2e8]
push ecx
call fcn.00419ca0
add esp, 4
mov dword [ebp - 0x2e8], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004717c0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret