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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov al, byte [0x5f60ee]
mov byte [ebp - 0x108], al
push 0xfe
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.005323e0
add esp, 0xc
mov dl, byte [0x5f60ef]
mov byte [ebp - 0x318], dl
push 0xfe
push 0
lea eax, [ebp - 0x317]
push eax
call fcn.005323e0
add esp, 0xc
mov cl, byte [0x5f60f0]
mov byte [ebp - 0x13c], cl
xor edx, edx
mov dword [ebp - 0x13b], edx
mov dword [ebp - 0x137], edx
mov dword [ebp - 0x133], edx
mov word [ebp - 0x12f], dx
mov byte [ebp - 0x12d], dl
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x10c], 0
cmp dword [0x5f5678], 1
jne 0x45c87c
jmp 0x45ce8b
cmp dword [ebp + 0xc], 0
jne 0x45c887
jmp 0x45ce8b
cmp dword [ebp + 0x10], 0
jne 0x45c892
jmp 0x45ce8b
cmp dword [ebp + 0x10], 0x63
jne 0x45c89d
jmp 0x45ce8b
push 6
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005323e0
add esp, 0xc
push 0xc8
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.005323e0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x52
push edx
call fcn.00532e80
add esp, 4
cmp eax, 8
je 0x45c8fb
push 0x5f60f1
push 0x5f60f2
push 0x56485c
push str.Invalid_Class_Path_ID__4_
call fcn.00422b80
add esp, 0x10
jmp 0x45ce8b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00532e80
add esp, 4
cmp eax, 8
je 0x45c92d
push 0x5f60f3
push 0x5f60f4
push 0x564888
push str.Invalid_Student_Path_ID__4_
call fcn.00422b80
add esp, 0x10
jmp 0x45ce8b
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00532e80
add esp, 4
cmp eax, 8
je 0x45c943
jmp 0x45ce8b
cmp dword [ebp + 0x10], 0x62
jne 0x45c950
mov dword [ebp + 0x10], 0x32
mov edx, dword [ebp + 0x10]
push edx
call fcn.00460c80
add esp, 4
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x45c970
jmp 0x45ce8b
cmp dword [ebp + 0x10], 0xf
jne 0x45c982
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d320
add esp, 4
cmp dword [0x5f6630], 0
je 0x45c999
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045c5d0
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
call fcn.00460c80
add esp, 4
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004281d0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push 0x5c
mov eax, dword [ebp + 8]
add eax, 0x52
push eax
push 0x5c
lea ecx, [ebp - 0x13c]
push ecx
push 0x5c44f8
push 0x5648b4
lea edx, [ebp - 0x108]
push edx
call fcn.00532706
add esp, 0x20
cmp dword [0x5f6630], 1
jne 0x45ca0f
push 0x1068ea0
push 0x5648cc
lea eax, [ebp - 0x108]
push eax
call fcn.00532706
add esp, 0xc
push 1
push 0x5648d8
lea ecx, [ebp - 0x108]
push ecx
call fcn.00459360
add esp, 0xc
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x45caa5
lea edx, [ebp - 4]
push edx
push 0
push 2
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x318]
push ecx
push 0x5f60f5
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.00491e40
add esp, 0x20
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x45caa5
push 1
push 0x5648dc
lea eax, [ebp - 0x108]
push eax
call fcn.00459360
add esp, 0xc
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x45caa5
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00455880
add esp, 8
cmp dword [ebp - 0x144], 0
jne 0x45cac2
push str.ERROR:_Write_Lock_Info:_Couldnt_open_file
push 0
call fcn.00436500
add esp, 8
jmp 0x45ce7f
mov edx, dword [ebp - 0x144]
push edx
call fcn.004557e0
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [0x5f7888], 1
jne 0x45cbaf
cmp dword [0x5f788c], 0
jne 0x45cb2f
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x114], eax
movsx ecx, word [ebp - 0x114]
mov dword [0x5f788c], ecx
mov edx, 6
mov word [0xd74ca0], dx
mov ax, word [0x5fdb08]
mov word [0xd74ca2], ax
mov ecx, 1
mov word [0xd74ca4], cx
jmp 0x45cb3b
mov edx, dword [0x5f788c]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x11c]
jle 0x45cb5f
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00455880
add esp, 8
mov eax, dword [ebp - 0x114]
sub eax, 1
imul eax, eax, 0xc8
add eax, 4
mov dword [ebp - 0x124], eax
push 0
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00532940
add esp, 0xc
mov eax, dword [ebp - 0x144]
push eax
push 0xc8
push 1
push 0xd74ca0
call fcn.005337fa
add esp, 0x10
jmp 0x45ce70
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp + 0xc]
movsx eax, word [edx + ecx*2 + 0x8a90]
cmp eax, 0xffffffff
jne 0x45cbf8
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 0x114]
mov word [eax + edx*2 + 0x8a90], cx
mov dword [ebp - 0x10c], 1
jmp 0x45cc0f
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + edx*2 + 0x8a90]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
add edx, 3
cmp edx, dword [ebp - 0x11c]
jle 0x45cc69
mov eax, dword [ebp - 0x114]
add eax, 3
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00455880
add esp, 8
mov edx, dword [ebp + 0xc]
movsx eax, word [edx + 0x8e52]
mov ecx, dword [ebp - 0x114]
add ecx, 3
cmp eax, ecx
jge 0x45cc69
mov edx, dword [ebp - 0x144]
push edx
call fcn.004557e0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0x8e52], ax
mov edx, 1
mov word [ebp - 0x218], dx
mov ax, word [ebp + 0x10]
mov word [ebp - 0x216], ax
mov ecx, dword [ebp - 0x114]
sub ecx, 1
imul ecx, ecx, 0xc8
add ecx, 4
mov dword [ebp - 0x124], ecx
push 0
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.00532940
add esp, 0xc
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x110], 1
jmp 0x45ccd5
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 4
jg 0x45cd6e
lea edx, [ebp - 0x210]
mov dword [ebp - 0x31c], edx
mov eax, dword [ebp - 0x110]
sub eax, 1
imul eax, eax, 0xc2
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x144]
push ecx
push 0xc8
push 1
lea edx, [ebp - 0x210]
push edx
call fcn.0053367b
add esp, 0x10
push 0xc2
mov eax, dword [ebp - 0x31c]
add eax, 6
push eax
mov ecx, dword [ebp - 0x128]
imul ecx, ecx, 0x308
add ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x228]
push eax
call fcn.0053387c
add esp, 0xc
test eax, eax
je 0x45cd5a
jmp 0x45cd6e
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
jmp 0x45ccc6
push 0
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.00532940
add esp, 0xc
cmp dword [ebp - 0x140], 4
jne 0x45cd9c
cmp dword [ebp - 0x10c], 1
jne 0x45ce70
mov dword [ebp - 0x110], 1
jmp 0x45cdb7
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 4
jg 0x45ce70
mov dx, word [ebp - 0x110]
mov word [ebp - 0x214], dx
mov eax, dword [ebp - 0x110]
sub eax, 1
imul eax, eax, 0xc2
mov dword [ebp - 0x120], eax
cmp dword [0x5f6088], 0
je 0x45ce1e
push 0
mov ecx, dword [ebp - 0x124]
add ecx, 6
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00532940
add esp, 0xc
mov eax, dword [ebp - 0x124]
add eax, 0xc8
mov dword [ebp - 0x124], eax
jmp 0x45ce38
mov ecx, dword [ebp - 0x144]
push ecx
push 6
push 1
lea edx, [ebp - 0x218]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
push 0xc2
push 1
mov ecx, dword [ebp - 0x128]
imul ecx, ecx, 0x308
add ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x228]
push eax
call fcn.005337fa
add esp, 0x10
jmp 0x45cda8
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00431d50
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call fcn.00419d80
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret