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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bb23
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x558384]
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
cmp dword [edi + 0x34], 8
lea ebx, [edi + 0x20]
mov dword [ebx + 0x10], 0
mov eax, ebx
jb 0x4537da
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x5359f0
mov eax, dword [edi + 4]
test al, 0x40
je 0x4537f2
mov eax, 0x5359f8
jmp 0x4537fc
test al, 0x20
mov eax, 0x530d4c
cmove eax, ecx
push eax
push dword [ebp + 8]
mov dword [edi], 0
call fcn.004f04ae
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x453820
mov ecx, edi
call fcn.00453560
jmp 0x453c4e
mov ecx, dword [edi + 4]
xor esi, esi
mov byte [ebp - 0x85], 1
mov dword [edi + 0x18], 1
test cl, 0x10
je 0x453b44
push 2
push esi
push eax
call fcn.004f1093
add esp, 0xc
push dword [edi]
call fcn.004f0c40
add esp, 4
mov dword [edi + 0x10], eax
push esi
push esi
push dword [edi]
call fcn.004f1093
mov eax, dword [edi + 0x10]
mov ebx, 0x400
add esp, 0xc
mov dword [ebp - 0x94], ebx
cmp eax, ebx
jge 0x453883
mov ebx, eax
mov dword [ebp - 0x94], ebx
test ebx, ebx
je 0x453c0e
push ebx
call fcn.004bd4f8
add esp, 4
mov dword [ebp - 0x90], eax
push dword [edi]
push 1
push ebx
push eax
call fcn.004f150a
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0x85]
jne 0x453b2a
and dword [edi + 4], 0xfffffffa
xor ecx, ecx
mov dword [ebp - 0x98], ecx
cmp dword [0x558e10], ecx
je 0x45396f
xor edx, edx
nop word [eax + eax]
mov ebx, dword [edx + 0x558e14]
xor esi, esi
test ebx, ebx
jle 0x45390b
mov edi, dword [ebp - 0x94]
cmp esi, edi
jge 0x4538ff
mov eax, dword [ebp - 0x90]
mov ecx, dword [edx + 0x558e10]
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jne 0x4538ff
inc esi
cmp esi, ebx
jl 0x4538e2
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x98]
cmp esi, ebx
je 0x453927
inc ecx
xor esi, esi
mov edx, ecx
mov dword [ebp - 0x98], ecx
shl edx, 4
cmp dword [edx + 0x558e10], esi
jne 0x4538d0
jmp 0x453969
shl ecx, 4
mov eax, dword [ecx + 0x558e1c]
or eax, dword [edi + 4]
mov dword [edi + 4], eax
cmp esi, 2
jne 0x45393e
mov dword [edi + 0x18], esi
mov edx, dword [ecx + 0x558e18]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453950
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x38]
call fcn.0040d260
mov ebx, dword [ebp - 0x94]
cmp ebx, esi
jle 0x453980
push 0
push esi
push dword [edi]
call fcn.004f1093
add esp, 0xc
test esi, esi
jne 0x453af6
xor eax, eax
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.00451ce0
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.004bd4f8
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x18], ebx
jge 0x4539ea
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040f100
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.00451fc0
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0
call fcn.00458de0
push ebx
call fcn.004b8926
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.004561c0
add esp, 4
lea ecx, [edi + 0x38]
push eax
call fcn.0040c610
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x453a7a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x453a70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x453c6c
push edx
push ecx
call fcn.004bcf17
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.0040d540
lea ecx, [ebp - 0x84]
call fcn.0040d540
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x453ae2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x453ad8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x453c71
push edx
push ecx
call fcn.004bcf17
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
lea ecx, [edi + 0x38]
mov ebx, dword [ebp - 0x90]
jne 0x453b30
cmp byte [ebx], 0x3c
jne 0x453b30
push 5
push str.UTF_8
call fcn.0040d260
push ebx
call fcn.004b8926
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x453c06
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.004b8926
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x453c06
test cl, 0x20
je 0x453c11
test cl, 0x40
je 0x453b6c
push 2
push 0
push eax
call fcn.004f1093
add esp, 0xc
push dword [edi]
call fcn.004f0c40
add esp, 4
mov dword [edi + 0x10], eax
xor ebx, ebx
cmp dword [0x558e10], ebx
je 0x453c0e
mov ecx, dword [edi + 4]
xor eax, eax
nop
test dword [eax + 0x558e1c], ecx
jne 0x453b98
inc ebx
mov eax, ebx
shl eax, 4
cmp dword [eax + 0x558e10], esi
jne 0x453b80
jmp 0x453c0e
shl ebx, 4
mov esi, dword [ebx + 0x558e14]
cmp esi, 2
jne 0x453ba9
mov dword [edi + 0x18], esi
mov edx, dword [ebx + 0x558e18]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x8c], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453bc0
sub ecx, dword [ebp - 0x8c]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x38]
call fcn.0040d260
cmp dword [edi + 0x10], 0
je 0x453be7
xor esi, esi
jmp 0x453c0e
push dword [edi]
push 1
push esi
push dword [ebx + 0x558e10]
call fcn.004f12e6
add esp, 0x10
cmp eax, 1
sete al
mov byte [ebp - 0x85], al
test al, al
je 0x453814
lea ebx, [edi + 0x20]
test byte [edi + 4], 0x40
je 0x453c1f
mov eax, dword [edi + 0x10]
mov dword [edi + 0x14], eax
jmp 0x453c22
mov dword [edi + 0x14], esi
test esi, esi
je 0x453c48
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], 0x530d54
call fcn.00451aa0
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.004bd1b9
mov esp, ebp
pop ebp
ret 4
call fcn.004df969
call fcn.004df969
int3