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

Disassembly:
sub esp, 0x94
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
push 0
mov dword [esp + 0x24], ecx
call fcn.00454be0
mov eax, dword [esi + 4]
mov ecx, 0x516f88
test al, 0x40
je 0x4aa7dd
mov ecx, 0x520624
jmp 0x4aa7e6
test al, 0x20
je 0x4aa7e6
mov ecx, 0x52061c
mov eax, dword [esp + 0xa8]
push ecx
push eax
mov dword [esi], 0
call fcn.004da39a
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4aa80f
mov ecx, esi
call fcn.004a6320
jmp 0x4aaae4
mov ecx, dword [esi + 4]
mov ebx, 1
xor edi, edi
mov dword [esi + 0x18], ebx
test cl, 0x10
je 0x4aaa02
push 2
push edi
push eax
call fcn.004da24f
mov ecx, dword [esi]
push ecx
call fcn.004da157
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.004da24f
mov eax, dword [esi + 0x10]
mov ebp, 0x400
add esp, 0x1c
cmp eax, ebp
jge 0x4aa85c
mov ebp, eax
test ebp, ebp
je 0x4aaaa8
push ebp
call fcn.004d45ee
mov ecx, dword [esi]
push ecx
push ebx
push ebp
push eax
mov dword [esp + 0x28], eax
call fcn.004d9f9d
add esp, 0x14
cmp eax, ebx
sete al
mov byte [esp + 0x13], al
test al, al
je 0x4aa9f0
and dword [esi + 4], 0xfffffffa
xor ecx, ecx
cmp dword [0x541740], ecx
je 0x4aa8fc
xor eax, eax
mov edx, dword [eax + 0x541744]
test edx, edx
jle 0x4aa8c0
cmp edi, ebp
jge 0x4aa8c0
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + 0x541740]
mov bl, byte [ebx + edi]
cmp bl, byte [edi + edx]
mov edx, dword [eax + 0x541744]
jne 0x4aa8c0
inc edi
cmp edi, edx
jl 0x4aa89f
cmp edi, edx
je 0x4aa8d6
inc ecx
mov eax, ecx
xor edi, edi
shl eax, 4
cmp dword [eax + 0x541740], edi
jne 0x4aa895
jmp 0x4aa8fc
shl ecx, 4
mov eax, dword [ecx + 0x54174c]
or eax, dword [esi + 4]
mov dword [esi + 4], eax
cmp edi, 2
jne 0x4aa8ed
mov dword [esi + 0x18], edi
mov ecx, dword [ecx + 0x541748]
push ecx
lea ecx, [esi + 0x3c]
call fcn.004a5840
cmp ebp, edi
jle 0x4aa90e
mov edx, dword [esi]
push 0
push edi
push edx
call fcn.004da24f
add esp, 0xc
test edi, edi
jne 0x4aa9d4
mov ecx, dword [esp + 0x14]
push ebp
push ecx
xor eax, eax
push ecx
mov word [esp + 0x4c], ax
mov eax, esp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x64]
mov dword [eax], 0x51d26c
call fcn.004a5a00
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d45ee
add esp, 4
push ebp
lea ecx, [esp + 0x40]
mov ebx, eax
call fcn.004a40b0
push ecx
mov eax, esp
mov dword [esp + 0x9c], ebp
push ebx
lea ecx, [esp + 0x60]
mov dword [eax], str.UTF_16
call fcn.004a5a70
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.004590b0
push ebx
call fcn.004d7e25
lea eax, [esp + 0x40]
mov ecx, esp
push eax
call fcn.004a3860
lea ecx, [esp + 0x24]
push ecx
call fcn.004a53a0
add esp, 8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x3c]
call fcn.004581e0
lea ecx, [esp + 0x20]
call fcn.00456e50
lea ecx, [esp + 0x58]
call fcn.004a3e60
lea ecx, [esp + 0x3c]
call fcn.00456e50
cmp dword [esi + 0x50], 0
jne 0x4aa9f0
mov edx, dword [esp + 0x14]
cmp byte [edx], 0x3c
jne 0x4aa9f0
push 0x51d26c
lea ecx, [esi + 0x3c]
call fcn.004a5840
mov eax, dword [esp + 0x14]
push eax
call fcn.004d7e25
add esp, 4
jmp 0x4aaa99
test cl, 0x20
je 0x4aaaa8
test cl, 0x40
je 0x4aaa28
push 2
push 0
push eax
call fcn.004da24f
mov ecx, dword [esi]
push ecx
call fcn.004da157
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x541740], edi
je 0x4aaaa8
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x54174c], edx
jne 0x4aaa50
add ecx, ebx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x541740], edi
jne 0x4aaa37
jmp 0x4aaaa8
shl ecx, 4
mov ebp, ecx
mov edi, dword [ebp + 0x541744]
cmp edi, 2
jne 0x4aaa63
mov dword [esi + 0x18], edi
mov edx, dword [ebp + 0x541748]
push edx
lea ecx, [esi + 0x3c]
call fcn.004a5840
cmp dword [esi + 0x10], 0
je 0x4aaa7c
xor edi, edi
jmp 0x4aaaa8
mov eax, dword [esi]
mov ecx, dword [ebp + 0x541740]
push eax
push 1
push edi
push ecx
call fcn.004dc2b5
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x4aa803
mov bl, byte [esp + 0x13]
test byte [esi + 4], 0x40
je 0x4aaab6
mov edx, dword [esi + 0x10]
mov dword [esi + 0x14], edx
jmp 0x4aaab9
mov dword [esi + 0x14], edi
test edi, edi
je 0x4aaae2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0x520614
mov eax, dword [esp + 0x30]
push eax
call fcn.004aa580
add esp, 0x18
mov al, bl
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x94
ret 4