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

Disassembly:
push 0xffffffffffffffff
push 0x10123150
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
lea ebp, [esi + 0x20]
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov dword [esp + 0x24], ebp
call fcn.10005880
mov eax, dword [esi + 4]
mov ecx, 0x1013e254
test al, 0x40
je 0x1002bf36
mov ecx, 0x1013e24c
jmp 0x1002bf3f
test al, 0x20
je 0x1002bf3f
mov ecx, 0x1013e250
mov eax, dword [esp + 0x6c]
push ecx
push eax
mov dword [esi], 0
call fcn.100f5169
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x1002bf64
push esi
call fcn.1002bd20
jmp 0x1002c20e
mov ecx, dword [esi + 4]
xor edi, edi
mov byte [esp + 0x13], 1
mov dword [esi + 0x18], 1
test cl, 0x10
je 0x1002c125
push 2
push edi
push eax
call fcn.100f437b
mov ecx, dword [esi]
add esp, 0xc
push ecx
call fcn.100f5830
mov edx, dword [esi]
add esp, 4
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.100f437b
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], ebx
jge 0x1002bfc3
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1002c1cc
push ebx
call fcn.100f2fca
mov ebp, eax
mov eax, dword [esi]
add esp, 4
push eax
push 1
push ebx
push ebp
mov dword [esp + 0x24], ebp
call fcn.100f5473
add esp, 0x10
cmp eax, 1
sete al
mov byte [esp + 0x13], al
test al, al
je 0x1002c113
and dword [esi + 4], 0xfffffffa
xor ecx, ecx
cmp dword [0x1015ec28], ecx
je 0x1002c073
xor eax, eax
mov ebp, dword [eax + 0x1015ec2c]
test ebp, ebp
jle 0x1002c033
jmp 0x1002c014
mov ebx, dword [esp + 0x18]
cmp edi, ebx
jge 0x1002c033
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + 0x1015ec28]
mov bl, byte [ebx + edi]
cmp bl, byte [edi + edx]
jne 0x1002c02f
inc edi
cmp edi, ebp
jl 0x1002c010
mov ebx, dword [esp + 0x18]
cmp edi, ebp
je 0x1002c049
inc ecx
mov eax, ecx
xor edi, edi
shl eax, 4
cmp dword [eax + 0x1015ec28], edi
jne 0x1002c003
jmp 0x1002c06f
shl ecx, 4
mov eax, dword [ecx + 0x1015ec34]
or eax, dword [esi + 4]
mov dword [esi + 4], eax
cmp edi, 2
jne 0x1002c060
mov dword [esi + 0x18], edi
mov ecx, dword [ecx + 0x1015ec30]
push ecx
lea ecx, [esi + 0x3c]
call fcn.10004370
mov ebp, dword [esp + 0x14]
cmp ebx, edi
jle 0x1002c085
mov edx, dword [esi]
push 0
push edi
push edx
call fcn.100f437b
add esp, 0xc
xor eax, eax
cmp edi, eax
jne 0x1002c0fa
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
push ebx
push ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], eax
call fcn.10004290
cmp dword [esp + 0x54], 0x10
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], esp
mov eax, esp
jae 0x1002c0c0
lea ecx, [esp + 0x44]
mov dword [eax], ecx
lea ecx, [esp + 0x24]
call fcn.1002ecd0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x70], 1
call fcn.100057a0
lea ecx, [esp + 0x20]
call fcn.1002b8e0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call fcn.1002b8e0
cmp dword [esi + 0x50], 0
jne 0x1002c113
cmp byte [ebp], 0x3c
jne 0x1002c113
push str.UTF_8
lea ecx, [esi + 0x3c]
call fcn.10004370
push ebp
call fcn.100f407a
mov ebp, dword [esp + 0x20]
add esp, 4
jmp 0x1002c1c1
test cl, 0x20
je 0x1002c1cc
test cl, 0x40
je 0x1002c14e
push 2
push 0
push eax
call fcn.100f437b
mov eax, dword [esi]
add esp, 0xc
push eax
call fcn.100f5830
add esp, 4
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x1015ec28], ecx
je 0x1002c1cc
mov edx, dword [esi + 4]
xor eax, eax
lea ecx, [ecx]
test dword [eax + 0x1015ec34], edx
jne 0x1002c178
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x1015ec28], edi
jne 0x1002c160
jmp 0x1002c1cc
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x1015ec2c]
cmp edi, 2
jne 0x1002c18b
mov dword [esi + 0x18], edi
mov ecx, dword [ebx + 0x1015ec30]
push ecx
lea ecx, [esi + 0x3c]
call fcn.10004370
cmp dword [esi + 0x10], 0
je 0x1002c1a4
xor edi, edi
jmp 0x1002c1cc
mov edx, dword [esi]
mov eax, dword [ebx + 0x1015ec28]
push edx
push 1
push edi
push eax
call fcn.100f426f
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x1002bf59
test byte [esi + 4], 0x40
je 0x1002c1da
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x1002c1dd
mov dword [esi + 0x14], edi
test edi, edi
je 0x1002c20a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x30], esp
push ebp
mov dword [eax], 0x10141b44
call fcn.1002a3e0
add esp, 0x18
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100f30a6
add esp, 0x58
ret 4