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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x20]
push edi
mov dword [ebp - 0x14], ecx
call fcn.004040f0
mov eax, dword [esi + 4]
mov ecx, 0x544c78
test al, 0x40
je 0x448619
mov ecx, 0x544c70
jmp 0x448622
test al, 0x20
je 0x448622
mov ecx, 0x544c68
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [esi], 0
call fcn.00502147
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x44864b
mov ecx, esi
call fcn.00444710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
xor edi, edi
mov byte [ebp - 1], 1
mov dword [esi + 0x18], 1
test cl, 0x10
je 0x448810
push 2
push edi
push eax
call fcn.0050200d
mov ecx, dword [esi]
push ecx
call fcn.00501f1e
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.0050200d
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0x1c
cmp eax, ebx
jge 0x44869b
mov ebx, eax
test ebx, ebx
je 0x4488af
push ebx
call fcn.0047c0b3
mov ecx, dword [esi]
push ecx
push 1
push ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.00504494
add esp, 0x14
cmp eax, 1
sete al
mov byte [ebp - 1], al
test al, al
je 0x4487ff
and dword [esi + 4], 0xfffffffa
mov dword [ebp - 8], edi
cmp dword [0x56bba8], edi
je 0x44873f
xor eax, eax
mov ecx, dword [eax + 0x56bbac]
test ecx, ecx
jle 0x4486ff
cmp edi, ebx
jge 0x4486ff
mov ecx, dword [ebp - 0xc]
mov cl, byte [ecx + edi]
mov edx, dword [eax + 0x56bba8]
cmp cl, byte [edi + edx]
mov ecx, dword [eax + 0x56bbac]
jne 0x4486ff
inc edi
cmp edi, ecx
jl 0x4486df
mov eax, dword [ebp - 8]
cmp edi, ecx
je 0x448719
inc eax
mov dword [ebp - 8], eax
xor edi, edi
shl eax, 4
cmp dword [eax + 0x56bba8], edi
jne 0x4486d5
jmp 0x44873f
shl eax, 4
mov edx, dword [eax + 0x56bbb4]
or edx, dword [esi + 4]
mov dword [esi + 4], edx
cmp edi, 2
jne 0x448730
mov dword [esi + 0x18], edi
mov eax, dword [eax + 0x56bbb0]
lea ecx, [esi + 0x24]
push eax
call fcn.00404050
cmp ebx, edi
jle 0x448751
mov ecx, dword [esi]
push 0
push edi
push ecx
call fcn.0050200d
add esp, 0xc
test edi, edi
jne 0x4487e1
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
mov ecx, dword [ebp - 0xc]
push ebx
push ecx
add eax, 0x10
push ecx
mov dword [ebp - 8], eax
mov eax, esp
lea ecx, [ebp - 0x2c]
mov dword [eax], 0x541714
call fcn.004434b0
push ebx
lea ecx, [ebp - 8]
call fcn.00403e00
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], ebx
mov dword [ecx], str.UTF_16
push eax
lea ecx, [ebp - 0x2c]
call fcn.00443530
push eax
lea ecx, [ebp - 8]
call fcn.004031c0
mov edx, dword [ebp - 8]
push ecx
mov eax, esp
mov dword [eax], edx
lea eax, [ebp - 0x10]
push eax
call fcn.00442e50
add esp, 8
lea ecx, [esi + 0x24]
push eax
call fcn.00423fc0
lea ecx, [ebp - 0x10]
call fcn.00404160
lea ecx, [ebp - 0x2c]
call fcn.00441be0
lea ecx, [ebp - 8]
call fcn.00404160
mov edx, dword [esi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x24]
jne 0x4487ff
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x3c
jne 0x4487ff
push 0x541714
call fcn.00404050
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005001ec
add esp, 4
jmp 0x4488a5
test cl, 0x20
je 0x4488af
test cl, 0x40
je 0x448836
push 2
push 0
push eax
call fcn.0050200d
mov edx, dword [esi]
push edx
call fcn.00501f1e
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x56bba8], ecx
je 0x4488af
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x56bbb4], edx
jne 0x44885d
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x56bba8], edi
jne 0x448845
jmp 0x4488af
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x56bbac]
cmp edi, 2
jne 0x448870
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x56bbb0]
lea ecx, [esi + 0x24]
push eax
call fcn.00404050
cmp dword [esi + 0x10], 0
je 0x448889
xor edi, edi
jmp 0x4488af
mov ecx, dword [esi]
mov edx, dword [ebx + 0x56bba8]
push ecx
push 1
push edi
push edx
call fcn.005015a9
add esp, 0x10
cmp eax, 1
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x44863b
test byte [esi + 4], 0x40
je 0x4488bd
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
jmp 0x4488c0
mov dword [esi + 0x14], edi
test edi, edi
je 0x4488e8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, esp
push ecx
mov dword [eax], 0x544c60
call fcn.00448460
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4