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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5326ed
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x577760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea esi, [ebx + 0x18]
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0xc0], esi
call fcn.00422e90
mov eax, dword [ebx + 4]
mov ecx, 0x560c00
test al, 0x40
je 0x444217
mov ecx, 0x560c08
jmp 0x444220
test al, 0x20
je 0x444220
mov ecx, 0x560c10
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebx], 0
call fcn.004c04e5
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x444275
lea edi, [ebp - 0x2c]
call fcn.0043eb00
mov esi, dword [ebp - 0xc0]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00422360
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x44426e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bf135
add esp, 4
xor al, al
jmp 0x44456b
mov ecx, dword [ebx + 4]
xor edi, edi
mov byte [ebp - 0xad], 1
mov dword [ebp - 0xb4], edi
test cl, 0x10
je 0x4444e5
push 2
push edi
push eax
call fcn.004c0ede
mov edx, dword [ebx]
push edx
call fcn.004c0db6
push edi
mov dword [ebx + 8], eax
mov eax, dword [ebx]
push edi
push eax
call fcn.004c0ede
mov eax, dword [ebx + 8]
mov esi, 0x400
add esp, 0x1c
cmp eax, esi
jge 0x4442c7
mov esi, eax
test esi, esi
je 0x44452c
push esi
call fcn.004bf80b
mov ecx, dword [ebx]
push ecx
push 1
push esi
push eax
mov dword [ebp - 0xbc], eax
call fcn.004c0a34
add esp, 0x14
cmp eax, 1
sete al
mov byte [ebp - 0xad], al
test al, al
je 0x4444d1
and dword [ebx + 4], 0xfffffffa
mov dword [ebx + 0x10], 1
mov dword [ebp - 0xc4], edi
cmp dword [0x57a8f8], edi
je 0x4443a0
xor eax, eax
mov ecx, dword [eax + 0x57a8fc]
test ecx, ecx
jle 0x444348
cmp edi, esi
jge 0x444342
mov ecx, dword [ebp - 0xbc]
mov cl, byte [ecx + edi]
mov edx, dword [eax + 0x57a8f8]
cmp cl, byte [edi + edx]
mov ecx, dword [eax + 0x57a8fc]
jne 0x444342
inc edi
cmp edi, ecx
jl 0x44431f
mov dword [ebp - 0xb4], edi
mov eax, dword [ebp - 0xc4]
cmp edi, ecx
je 0x444377
inc eax
mov dword [ebp - 0xc4], eax
shl eax, 4
cmp dword [eax + 0x57a8f8], 0
mov dword [ebp - 0xb4], 0
mov edi, dword [ebp - 0xb4]
jne 0x444315
jmp 0x4443a0
shl eax, 4
mov edx, dword [eax + 0x57a904]
or edx, dword [ebx + 4]
sub dword [ebx + 8], edi
mov dword [ebx + 4], edx
cmp edi, 2
jne 0x444391
mov dword [ebx + 0x10], edi
mov eax, dword [eax + 0x57a900]
lea ecx, [ebx + 0x34]
push ecx
call fcn.004450a0
cmp esi, edi
jle 0x4443b2
mov edx, dword [ebx]
push 0
push edi
push edx
call fcn.004c0ede
add esp, 0xc
test edi, edi
jne 0x4444b2
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0xbc]
push esi
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0xb8], esp
push ecx
mov dword [ebp - 4], 1
mov dword [eax], str.UTF_8
mov eax, esp
lea edx, [ebp - 0xac]
mov dword [ebp - 0xb8], esp
push edx
mov dword [eax], str.UTF_16
call fcn.0043c5a0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.004bf80b
mov edi, eax
add esp, 4
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00423990
lea eax, [ebp - 0xac]
push edi
push eax
mov dword [ebp - 0x6c], esi
call fcn.00443e90
add esp, 8
push eax
mov eax, edi
lea esi, [ebp - 0x2c]
call fcn.00422da0
push edi
call fcn.004bf0cc
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xb8], esp
mov eax, esp
jae 0x444466
mov ecx, esi
mov dword [eax], ecx
lea ecx, [ebp - 0x64]
call fcn.0043dab0
add esp, 4
lea esi, [ebx + 0x34]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00422360
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00421f20
lea ecx, [ebp - 0xac]
push ecx
mov byte [ebp - 4], 1
call fcn.00444630
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00421f20
mov edi, dword [ebp - 0xb4]
cmp dword [ebx + 0x44], 0
jne 0x4444d1
mov edx, dword [ebp - 0xbc]
cmp byte [edx], 0x3c
jne 0x4444d1
lea eax, [ebx + 0x34]
push eax
mov eax, str.UTF_8
call fcn.004450a0
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.004bf0cc
add esp, 4
jmp 0x4445d4
test cl, 0x20
je 0x44452c
mov dword [ebx + 0x10], 1
test cl, 0x40
je 0x444502
push eax
call fcn.004c0db6
add esp, 4
mov dword [ebx + 8], eax
cmp dword [ebx + 8], edi
jne 0x44452c
xor ecx, ecx
cmp dword [0x57a8f8], ecx
je 0x44452c
mov edx, dword [ebx + 4]
xor eax, eax
test dword [eax + 0x57a904], edx
jne 0x444587
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x57a8f8], edi
jne 0x444516
cmp dword [ebx + 0x44], 0
je 0x444565
mov esi, dword [ebp - 0xc0]
push 0
add ebx, 0x34
push ebx
or eax, 0xffffffff
mov ecx, esi
call fcn.00422420
test edi, edi
je 0x444557
push esi
mov edx, str._BOM_
call fcn.00421f70
push 1
push 0x55c25c
mov eax, esi
call fcn.00422c70
mov al, byte [ebp - 0xad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be8b8
mov esp, ebp
pop ebp
ret
shl ecx, 4
mov esi, ecx
mov edi, dword [esi + 0x57a8fc]
mov dword [ebp - 0xb4], edi
cmp edi, 2
jne 0x4445af
lea edx, [ebx + 0x34]
mov dword [ebx + 0x10], edi
mov eax, dword [esi + 0x57a900]
push edx
call fcn.004450a0
mov eax, dword [ebx]
mov ecx, dword [esi + 0x57a8f8]
push eax
push 1
push edi
push ecx
call fcn.004c0ba8
mov edi, dword [ebp - 0xb4]
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0xad]
cmp byte [ebp - 0xad], 0
jne 0x44452c
lea edi, [ebp - 0x48]
call fcn.0043eb00
mov esi, dword [ebp - 0xc0]
mov edi, eax
mov dword [ebp - 4], 4
call fcn.00422360
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x44426e
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bf135
add esp, 4
xor al, al
jmp 0x44456b