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

Disassembly:
push 0x30
mov eax, 0x1039afd
call fcn.0102132c
lea esi, [ebx + 0x20]
mov dword [ebp - 0x24], esi
call fcn.01008846
mov eax, dword [ebx + 4]
test al, 0x40
mov ecx, 0x1044628
je 0x100a8cc
mov ecx, 0x1044630
jmp 0x100a8d5
test al, 0x20
je 0x100a8d5
mov ecx, 0x1044638
push ecx
push dword [ebp + 8]
xor esi, esi
mov dword [ebx], esi
call fcn.0101f6c0
cmp eax, esi
pop ecx
pop ecx
mov dword [ebx], eax
jne 0x100a8f5
push ebx
call fcn.0100a776
jmp 0x100abe3
mov ecx, dword [ebx + 4]
test cl, 0x10
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x10], esi
mov dword [ebx + 0x18], 1
je 0x100aafe
push 2
push esi
push eax
call fcn.0101e54d
add esp, 0xc
push dword [ebx]
call fcn.0101f86b
pop ecx
push esi
push esi
push dword [ebx]
mov dword [ebx + 0x10], eax
call fcn.0101e54d
mov ecx, dword [ebx + 0x10]
mov eax, 0x400
add esp, 0xc
cmp ecx, eax
mov edi, eax
jge 0x100a94a
mov edi, ecx
cmp edi, esi
je 0x100aba6
push edi
call fcn.0101d7fe
pop ecx
push dword [ebx]
mov dword [ebp - 0x18], eax
push 1
push edi
push eax
call fcn.0101fb75
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
je 0x100aaed
and dword [ebx + 4], 0xfffffffa
cmp dword [0x104c820], esi
mov dword [ebp - 0x14], esi
je 0x100aa0a
xor eax, eax
mov ecx, dword [eax + 0x104c824]
cmp ecx, esi
mov dword [ebp - 0x1c], ecx
jle 0x100a9c1
jmp 0x100a998
xor esi, esi
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
jge 0x100a9c1
mov edx, dword [eax + 0x104c820]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov al, byte [esi + ecx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x20]
jne 0x100a9bf
inc ecx
cmp ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
jl 0x100a996
xor esi, esi
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
je 0x100a9df
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [eax + 0x104c820], esi
mov dword [ebp - 0x10], esi
jne 0x100a987
jmp 0x100aa0a
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [eax + 0x104c82c]
or ecx, dword [ebx + 4]
push 2
mov dword [ebx + 4], ecx
pop ecx
cmp edx, ecx
jne 0x100a9fb
mov dword [ebx + 0x18], ecx
push dword [eax + 0x104c828]
lea eax, [ebx + 0x24]
push eax
call fcn.0100e638
cmp edi, dword [ebp - 0x10]
jle 0x100aa1d
push esi
push dword [ebp - 0x10]
push dword [ebx]
call fcn.0101e54d
add esp, 0xc
cmp dword [ebp - 0x10], esi
jne 0x100aad0
lea eax, [ebp - 0x14]
push eax
call fcn.0100692c
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x18]
push ecx
mov eax, esp
mov dword [eax], str.UTF_8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], esp
push eax
call fcn.01009500
mov byte [ebp - 4], 1
push edi
lea esi, [ebp - 0x14]
call fcn.01008886
push ecx
mov dword [ebp - 0x2c], edi
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
lea edi, [ebp - 0x3c]
mov dword [ecx], str.UTF_16
call fcn.010096cb
cmp eax, 0xffffffff
jne 0x100aa7d
mov eax, dword [ebp - 0x14]
call fcn.01007969
lea edx, [ebp - 0x14]
call fcn.010079e6
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [ebp - 0x20], esp
mov dword [eax], ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0100c930
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea edi, [ebx + 0x24]
call fcn.01006980
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
call fcn.0100695b
mov byte [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0100abeb
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.0100695b
xor esi, esi
lea eax, [ebx + 0x24]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], esi
jne 0x100aaed
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0x3c
jne 0x100aaed
push str.UTF_8
push eax
call fcn.0100e638
push dword [ebp - 0x18]
call fcn.0101e2b6
mov al, byte [ebp + 0xb]
pop ecx
jmp 0x100ab9e
test cl, 0x20
je 0x100aba6
test cl, 0x40
je 0x100ab23
push 2
push esi
push eax
call fcn.0101e54d
add esp, 0xc
push dword [ebx]
call fcn.0101f86b
pop ecx
mov dword [ebx + 0x10], eax
xor edx, edx
cmp dword [0x104c820], esi
je 0x100aba6
mov ecx, dword [ebx + 4]
xor eax, eax
test dword [eax + 0x104c82c], ecx
jne 0x100ab4a
inc edx
mov eax, edx
shl eax, 4
cmp dword [eax + 0x104c820], esi
jne 0x100ab32
jmp 0x100aba6
mov esi, edx
shl esi, 4
mov edi, dword [esi + 0x104c824]
push 2
pop eax
cmp edi, eax
mov dword [ebp - 0x10], edi
jne 0x100ab62
mov dword [ebx + 0x18], eax
push dword [esi + 0x104c828]
lea eax, [ebx + 0x24]
push eax
call fcn.0100e638
cmp dword [ebx + 0x10], 0
je 0x100ab7f
and dword [ebp - 0x10], 0
xor esi, esi
jmp 0x100aba6
push dword [ebx]
push 1
push edi
push dword [esi + 0x104c820]
call fcn.0101e444
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
xor esi, esi
test al, al
je 0x100a8ea
test byte [ebx + 4], 0x40
je 0x100abb1
mov eax, dword [ebx + 0x10]
jmp 0x100abb4
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
mov dword [ebx + 0x14], eax
je 0x100abe0
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push ecx
mov dword [eax], esi
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp - 0x24]
mov dword [eax], 0x1044640
call fcn.0100939f
add esp, 0x18
mov al, byte [ebp + 0xb]
call fcn.01021404
ret 4