Function at 0x4490c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd078
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
lea ebx, [edi + 0x20]
mov dword [ebx + 0x10], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x44910a
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x502bf0
mov eax, dword [edi + 4]
test al, 0x40
je 0x449122
mov eax, 0x502bf8
jmp 0x44912c
test al, 0x20
mov eax, 0x502c00
cmove eax, ecx
push eax
push dword [ebp + 8]
mov dword [edi], 0
call fcn.004c21cc
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x449150
mov ecx, edi
call fcn.00448e50
jmp 0x449537
mov ecx, dword [edi + 4]
xor esi, esi
mov byte [ebp - 0x85], 1
mov dword [edi + 0x18], 1
test cl, 0x10
je 0x449455
push 2
push esi
push eax
call fcn.004c303c
add esp, 0xc
push dword [edi]
call fcn.004c2a7d
add esp, 4
mov dword [edi + 0x10], eax
push esi
push esi
push dword [edi]
call fcn.004c303c
mov eax, dword [edi + 0x10]
mov ebx, 0x400
add esp, 0xc
mov dword [ebp - 0x94], ebx
cmp eax, ebx
jge 0x4491b3
mov ebx, eax
mov dword [ebp - 0x94], ebx
test ebx, ebx
je 0x4494f8
push ebx
call fcn.004a856a
add esp, 4
mov dword [ebp - 0x90], eax
push dword [edi]
push 1
push ebx
push eax
call fcn.004c355e
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0x85]
jne 0x44943b
and dword [edi + 4], 0xfffffffa
xor ecx, ecx
mov dword [ebp - 0x98], ecx
cmp dword [0x520ee0], ecx
je 0x44927f
xor edx, edx
nop word [eax + eax]
mov ebx, dword [edx + 0x520ee4]
xor esi, esi
test ebx, ebx
jle 0x44923b
mov edi, dword [ebp - 0x94]
cmp esi, edi
jge 0x44922f
mov eax, dword [ebp - 0x90]
mov ecx, dword [edx + 0x520ee0]
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jne 0x44922f
inc esi
cmp esi, ebx
jl 0x449212
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x98]
cmp esi, ebx
je 0x449257
inc ecx
xor esi, esi
mov edx, ecx
mov dword [ebp - 0x98], ecx
shl edx, 4
cmp dword [edx + 0x520ee0], esi
jne 0x449200
jmp 0x449279
shl ecx, 4
mov eax, dword [ecx + 0x520eec]
or dword [edi + 4], eax
cmp esi, 2
jne 0x44926b
mov dword [edi + 0x18], esi
push dword [ecx + 0x520ee8]
lea ecx, [edi + 0x38]
call fcn.00408a70
mov ebx, dword [ebp - 0x94]
cmp ebx, esi
jle 0x449290
push 0
push esi
push dword [edi]
call fcn.004c303c
add esp, 0xc
test esi, esi
jne 0x449409
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push ebx
push dword [ebp - 0x90]
mov dword [ebp - 4], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x84]
mov dword [eax], str.UTF_8
call fcn.00447450
xor ecx, ecx
mov byte [ebp - 4], 1
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a856a
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x18], ebx
jge 0x4492fd
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0044f6e0
push ecx
mov eax, esp
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x84]
push ebx
mov dword [eax], str.UTF_16
call fcn.00447730
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0
call fcn.0044f850
push ebx
call fcn.004a3457
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, esp
cmovae eax, dword [ebp - 0x2c]
mov dword [ecx], eax
lea ecx, [ebp - 0x44]
call fcn.0044c030
add esp, 4
lea ecx, [edi + 0x38]
push eax
call fcn.0040b1a0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x44938d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x449383
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449555
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00408b30
lea ecx, [ebp - 0x84]
call fcn.00408b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4493f5
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4493eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44955a
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp dword [edi + 0x48], 0
mov ebx, dword [ebp - 0x90]
jne 0x449441
cmp byte [ebx], 0x3c
jne 0x449441
push str.UTF_8
lea ecx, [edi + 0x38]
call fcn.00408a70
push ebx
call fcn.004a3457
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x4494f0
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.004a3457
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x4494f0
test cl, 0x20
je 0x4494fb
test cl, 0x40
je 0x44947d
push 2
push 0
push eax
call fcn.004c303c
add esp, 0xc
push dword [edi]
call fcn.004c2a7d
add esp, 4
mov dword [edi + 0x10], eax
xor ebx, ebx
cmp dword [0x520ee0], ebx
je 0x4494f8
mov ecx, dword [edi + 4]
xor eax, eax
nop dword [eax]
test dword [eax + 0x520eec], ecx
jne 0x4494a8
inc ebx
mov eax, ebx
shl eax, 4
cmp dword [eax + 0x520ee0], esi
jne 0x449490
jmp 0x4494f8
shl ebx, 4
mov esi, dword [ebx + 0x520ee4]
cmp esi, 2
jne 0x4494b9
mov dword [edi + 0x18], esi
push dword [ebx + 0x520ee8]
lea ecx, [edi + 0x38]
call fcn.00408a70
cmp dword [edi + 0x10], 0
je 0x4494d1
xor esi, esi
jmp 0x4494f8
push dword [edi]
push 1
push esi
push dword [ebx + 0x520ee0]
call fcn.004c333e
add esp, 0x10
cmp eax, 1
sete al
mov byte [ebp - 0x85], al
test al, al
je 0x449144
lea ebx, [edi + 0x20]
test byte [edi + 4], 0x40
je 0x449506
mov eax, dword [edi + 0x10]
jmp 0x449508
mov eax, esi
mov dword [edi + 0x14], eax
test esi, esi
je 0x449531
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov esi, esp
mov ecx, ebx
mov dword [eax], 0
mov dword [esi], 0x502c08
call fcn.00447210
add esp, 0x10
mov al, byte [ebp - 0x85]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret 4
call fcn.004af45f
call fcn.004af45f
int3