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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x328f200
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x32d8724]
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], 0x32a39ec
mov dword [ebp - 0x20], 0x32a39e0
mov dword [ebp - 0x1c], 4
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100c1cea
mov ecx, 0x12
shl ecx, 2
mov edx, dword [0x32db5fc]
mov eax, dword [0x32db5fc]
mov esi, dword [0x32db5fc]
mov esi, dword [esi + 0x6c]
xor esi, dword [eax + 0x64]
xor esi, dword [edx + ecx]
and esi, 0x10000
je 0x100c1c23
mov ecx, 0xe
shl ecx, 2
mov edx, dword [0x32db5fc]
mov eax, dword [0x32db5fc]
mov esi, dword [0x32db5fc]
mov esi, dword [esi + 0x6c]
xor esi, dword [eax + 0x64]
xor esi, dword [edx + ecx]
mov dword [ebp - 0x70], esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.100bd110
push eax
push 0x20006
push 0
push 0
push 0
mov eax, dword [0x32d5ad8]
push eax
mov ecx, dword [ebp - 0x70]
and ecx, 8
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call fcn.100bd230
add esp, 0x24
test eax, eax
jne 0x100c1c23
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 [0x32a0008]
test eax, eax
jne 0x100c1c19
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [0x32a0038]
mov ecx, 0x12
shl ecx, 2
mov edx, dword [0x32db5fc]
mov eax, dword [0x32db5fc]
mov esi, dword [0x32db5fc]
mov esi, dword [esi + 0x6c]
xor esi, dword [eax + 0x64]
xor esi, dword [edx + ecx]
and esi, 0x20000
je 0x100c1ce5
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 3
lea edx, [ebp - 0x44]
push edx
call fcn.100bed50
add esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x10
jb 0x100c1c7d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x90], eax
jmp 0x100c1c86
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x90], ecx
push 0x32a3874
mov edx, dword [ebp - 0x90]
push edx
call fcn.101512ea
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x100c1ccb
mov eax, dword [ebp - 0x48]
push eax
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.101515e1
add esp, 0x10
test eax, eax
je 0x100c1cbf
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.10150f53
add esp, 4
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.10042f50
mov dword [ebp - 4], 0xffffffff
jmp 0x100c1e85
mov dword [ebp - 0x4c], 0xffffffff
mov eax, 0xe
shl eax, 2
mov ecx, dword [0x32db5fc]
mov edx, dword [0x32db5fc]
mov esi, dword [0x32db5fc]
mov esi, dword [esi + 0x6c]
xor esi, dword [edx + 0x64]
xor esi, dword [ecx + eax]
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x10]
push eax
call fcn.100bd2e0
or eax, 0x20019
push eax
push 0
mov ecx, dword [0x32d5ad8]
push ecx
mov edx, dword [ebp - 0x7c]
and edx, 8
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call dword [0x32a002c]
test eax, eax
je 0x100c1d9d
mov eax, 0xe
shl eax, 2
mov ecx, dword [0x32db5fc]
mov edx, dword [0x32db5fc]
mov esi, dword [0x32db5fc]
mov esi, dword [esi + 0x6c]
xor esi, dword [edx + 0x64]
xor esi, dword [ecx + eax]
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [0x32d5ad8]
push ecx
mov edx, dword [ebp - 0x80]
and edx, 8
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
call dword [0x32a002c]
test eax, eax
jne 0x100c1dd7
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 [0x32a003c]
test eax, eax
jne 0x100c1dcd
cmp dword [ebp + 8], 0
je 0x100c1dc9
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 [0x32a0038]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x100c1e85
push 1
mov edx, dword [ebp - 0x20]
push edx
push 3
lea eax, [ebp - 0x68]
push eax
call fcn.100bed50
add esp, 0x10
mov dword [ebp - 4], 2
cmp dword [ebp - 0x54], 0x10
jb 0x100c1e0f
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x94], ecx
jmp 0x100c1e18
lea edx, [ebp - 0x68]
mov dword [ebp - 0x94], edx
push 0x32a34a4
mov eax, dword [ebp - 0x94]
push eax
call fcn.101512ea
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x100c1e6b
mov ecx, dword [ebp - 0x6c]
push ecx
push 1
push 4
lea edx, [ebp - 0x4c]
push edx
call fcn.10151211
add esp, 0x10
test eax, eax
je 0x100c1e5f
cmp dword [ebp + 8], 0
je 0x100c1e5b
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.10150f53
add esp, 4
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10042f50
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.1014d28a
mov esp, ebp
pop ebp
ret