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

Disassembly:
push 0xffffffffffffffff
push 0x5420ab
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 0xffffffffffffffff
lea ecx, [edi + 0x20]
push 0
mov dword [esp + 0x28], ecx
call fcn.00408910
mov eax, dword [edi + 4]
mov ecx, 0x57d464
test al, 0x40
je 0x42bdcd
mov ecx, 0x582828
jmp 0x42bdd6
test al, 0x20
je 0x42bdd6
mov ecx, 0x57dc18
mov eax, dword [esp + 0xbc]
push ecx
push eax
mov dword [edi], 0
call fcn.00480455
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x42bdfe
push edi
call fcn.0042bba0
jmp 0x42c135
mov ecx, dword [edi + 4]
mov ebx, 1
xor ebp, ebp
mov dword [edi + 0x18], ebx
test cl, 0x10
je 0x42c042
push 2
push ebp
push eax
call fcn.004866e4
mov ecx, dword [edi]
add esp, 0xc
push ecx
call fcn.00486d2f
mov edx, dword [edi]
add esp, 4
push ebp
push ebp
push edx
mov dword [edi + 0x10], eax
call fcn.004866e4
mov eax, dword [edi + 0x10]
mov esi, 0x400
add esp, 0xc
cmp eax, esi
jge 0x42be51
mov esi, eax
test esi, esi
je 0x42c0f1
push esi
call fcn.00446872
mov ecx, dword [edi]
add esp, 4
push ecx
push ebx
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00485f76
add esp, 0x10
cmp eax, ebx
sete al
mov byte [esp + 0x17], al
test al, al
je 0x42c030
and dword [edi + 4], 0xfffffffa
xor ecx, ecx
cmp dword [0x5a50e8], ecx
je 0x42bef7
xor eax, eax
lea ecx, [ecx]
mov edx, dword [eax + 0x5a50ec]
test edx, edx
jle 0x42bebb
cmp ebp, esi
jge 0x42bebb
mov ebx, dword [esp + 0x1c]
mov edx, dword [eax + 0x5a50e8]
mov bl, byte [ebx + ebp]
cmp bl, byte [edx + ebp]
mov edx, dword [eax + 0x5a50ec]
jne 0x42bebb
inc ebp
cmp ebp, edx
jl 0x42be9a
cmp ebp, edx
je 0x42bed1
inc ecx
mov eax, ecx
xor ebp, ebp
shl eax, 4
cmp dword [eax + 0x5a50e8], ebp
jne 0x42be90
jmp 0x42bef7
shl ecx, 4
mov eax, dword [ecx + 0x5a50f4]
or eax, dword [edi + 4]
mov dword [edi + 4], eax
cmp ebp, 2
jne 0x42bee8
mov dword [edi + 0x18], ebp
mov ecx, dword [ecx + 0x5a50f0]
push ecx
lea ecx, [edi + 0x3c]
call fcn.00405cb0
cmp esi, ebp
jle 0x42bf09
mov edx, dword [edi]
push 0
push ebp
push edx
call fcn.004866e4
add esp, 0xc
xor eax, eax
cmp ebp, eax
jne 0x42c014
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], eax
mov word [esp + 0x44], cx
mov edx, dword [esp + 0x1c]
push esi
push edx
push ecx
mov dword [esp + 0xc0], eax
mov eax, esp
mov dword [eax], str.UTF_8
lea eax, [esp + 0x68]
mov dword [esp + 0x24], esp
push eax
call fcn.0042abd0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov byte [esp + 0xb4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00446872
add esp, 4
cmp dword [esp + 0x58], esi
mov ebx, eax
jge 0x42bf81
mov eax, esi
lea ecx, [esp + 0x40]
call fcn.0041b8d0
push ecx
mov eax, esp
mov dword [esp + 0xa0], esi
mov dword [esp + 0x1c], esp
mov dword [eax], str.UTF_16
push ebx
lea eax, [esp + 0x64]
push eax
call fcn.0042ae70
mov ecx, dword [esp + 0x54]
push eax
push ebx
push ecx
lea esi, [esp + 0x4c]
call fcn.0041b700
push ebx
call fcn.0044687d
cmp dword [esp + 0x5c], 8
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], esp
mov eax, esp
jae 0x42bfcb
lea ecx, [esp + 0x48]
mov dword [eax], ecx
lea ecx, [esp + 0x28]
call fcn.0042e360
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x3c]
mov byte [esp + 0xc0], 2
call fcn.00406e30
lea ecx, [esp + 0x24]
call fcn.00418540
lea esi, [esp + 0x5c]
call fcn.00435b50
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00418540
cmp dword [edi + 0x50], 0
jne 0x42c030
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0x3c
jne 0x42c030
push str.UTF_8
lea ecx, [edi + 0x3c]
call fcn.00405cb0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044687d
add esp, 4
jmp 0x42c0e2
test cl, 0x20
je 0x42c0f1
test cl, 0x40
je 0x42c06b
push 2
push 0
push eax
call fcn.004866e4
mov ecx, dword [edi]
add esp, 0xc
push ecx
call fcn.00486d2f
add esp, 4
mov dword [edi + 0x10], eax
xor ecx, ecx
cmp dword [0x5a50e8], ebp
je 0x42c0f1
mov edx, dword [edi + 4]
xor eax, eax
lea ebx, [ebx]
test dword [eax + 0x5a50f4], edx
jne 0x42c099
add ecx, ebx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x5a50e8], ebp
jne 0x42c080
jmp 0x42c0f1
shl ecx, 4
mov esi, ecx
mov ebp, dword [esi + 0x5a50ec]
cmp ebp, 2
jne 0x42c0ac
mov dword [edi + 0x18], ebp
mov edx, dword [esi + 0x5a50f0]
push edx
lea ecx, [edi + 0x3c]
call fcn.00405cb0
cmp dword [edi + 0x10], 0
je 0x42c0c5
xor ebp, ebp
jmp 0x42c0f1
mov eax, dword [edi]
mov ecx, dword [esi + 0x5a50e8]
push eax
push 1
push ebp
push ecx
call fcn.0048030d
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x17]
cmp byte [esp + 0x17], 0
je 0x42bdf3
mov bl, byte [esp + 0x17]
test byte [edi + 4], 0x40
je 0x42c0ff
mov edx, dword [edi + 0x10]
mov dword [edi + 0x14], edx
jmp 0x42c102
mov dword [edi + 0x14], ebp
test ebp, ebp
je 0x42c133
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0x582830
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], esp
push eax
call fcn.0042aa10
add esp, 0x18
mov al, bl
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0047ff9f
add esp, 0xa8
ret 4