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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1eda960
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1f236ec]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x1eef9e4
mov dword [ebp - 0x20], 0x1eef9d8
mov dword [ebp - 0x1c], 4
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100ae9d3
mov ecx, 0x1e
shl ecx, 2
mov edx, dword [0x1f265bc]
mov eax, dword [0x1f265bc]
mov esi, dword [0x1f265bc]
mov esi, dword [esi + 0x48]
xor esi, dword [eax + 0x88]
xor esi, dword [edx + ecx]
and esi, 0x10000
je 0x100ae909
mov ecx, 9
shl ecx, 2
mov edx, dword [0x1f265bc]
mov eax, dword [0x1f265bc]
mov esi, dword [0x1f265bc]
mov esi, dword [esi + 0x48]
xor esi, dword [eax + 0x88]
xor esi, dword [edx + ecx]
mov dword [ebp - 0x70], esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.100a9d50
push eax
push 0x20006
push 0
push 0
push 0
mov eax, dword [0x1f20a88]
push eax
mov ecx, dword [ebp - 0x70]
and ecx, 8
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call fcn.100a9e70
add esp, 0x24
test eax, eax
jne 0x100ae909
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
push 3
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x1eec008]
test eax, eax
jne 0x100ae8ff
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [0x1eec038]
mov ecx, 0x1e
shl ecx, 2
mov edx, dword [0x1f265bc]
mov eax, dword [0x1f265bc]
mov esi, dword [0x1f265bc]
mov esi, dword [esi + 0x48]
xor esi, dword [eax + 0x88]
xor esi, dword [edx + ecx]
and esi, 0x20000
je 0x100ae9ce
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 3
lea edx, [ebp - 0x44]
push edx
call fcn.100ab9b0
add esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x10
jb 0x100ae966
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x90], eax
jmp 0x100ae96f
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x90], ecx
push 0x1eef86c
mov edx, dword [ebp - 0x90]
push edx
call fcn.1013ed6a
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x100ae9b4
mov eax, dword [ebp - 0x48]
push eax
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.1013f061
add esp, 0x10
test eax, eax
je 0x100ae9a8
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.1013e9d3
add esp, 4
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.10044170
mov dword [ebp - 4], 0xffffffff
jmp 0x100aeb74
mov dword [ebp - 0x4c], 0xffffffff
mov eax, 9
shl eax, 2
mov ecx, dword [0x1f265bc]
mov edx, dword [0x1f265bc]
mov esi, dword [0x1f265bc]
mov esi, dword [esi + 0x48]
xor esi, dword [edx + 0x88]
xor esi, dword [ecx + eax]
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x10]
push eax
call fcn.100a9f20
or eax, 0x20019
push eax
push 0
mov ecx, dword [0x1f20a88]
push ecx
mov edx, dword [ebp - 0x7c]
and edx, 8
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call dword [0x1eec02c]
test eax, eax
je 0x100aea8c
mov eax, 9
shl eax, 2
mov ecx, dword [0x1f265bc]
mov edx, dword [0x1f265bc]
mov esi, dword [0x1f265bc]
mov esi, dword [esi + 0x48]
xor esi, dword [edx + 0x88]
xor esi, dword [ecx + eax]
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [0x1f20a88]
push ecx
mov edx, dword [ebp - 0x80]
and edx, 8
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call dword [0x1eec02c]
test eax, eax
jne 0x100aeac6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [0x1eec03c]
test eax, eax
jne 0x100aeabc
cmp dword [ebp + 8], 0
je 0x100aeab8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c]
mov dword [ecx], edx
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [0x1eec038]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x100aeb74
push 1
mov edx, dword [ebp - 0x20]
push edx
push 3
lea eax, [ebp - 0x68]
push eax
call fcn.100ab9b0
add esp, 0x10
mov dword [ebp - 4], 2
cmp dword [ebp - 0x54], 0x10
jb 0x100aeafe
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x94], ecx
jmp 0x100aeb07
lea edx, [ebp - 0x68]
mov dword [ebp - 0x94], edx
push 0x1eef49c
mov eax, dword [ebp - 0x94]
push eax
call fcn.1013ed6a
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x100aeb5a
mov ecx, dword [ebp - 0x6c]
push ecx
push 1
push 4
lea edx, [ebp - 0x4c]
push edx
call fcn.1013ec91
add esp, 0x10
test eax, eax
je 0x100aeb4e
cmp dword [ebp + 8], 0
je 0x100aeb4a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x6c]
push edx
call fcn.1013e9d3
add esp, 4
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10044170
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1013ad0a
mov esp, ebp
pop ebp
ret