Function at 0x4eb2ee
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5ac325
call fcn.00591b5c
sub esp, 0x40
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x3c
call fcn.0055420c
test eax, eax
jne 0x4eb325
push dword [0x67043c]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x10]
xor al, al
jmp 0x4eb4de
lea ecx, [ebp - 0x40]
call fcn.004cde9c
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.004ea895
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x4eb37a
push dword [0x670440]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x10]
and byte [ebp - 0x41], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004ce1b7
mov al, byte [ebp - 0x41]
jmp 0x4eb4de
push 0x606ff4
lea ecx, [ebp - 0x40]
call fcn.0055420c
push eax
call fcn.0058fd5a
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4eb3d9
push str.Failed_to_open_file
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
call fcn.0055420c
push eax
push str.filename
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
and byte [ebp - 0x42], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004ce1b7
mov al, byte [ebp - 0x42]
jmp 0x4eb4de
push 0
push 0xa
push dword [ebp - 0x14]
call fcn.0058fe44
add esp, 0xc
test eax, eax
je 0x4eb436
push str.Failed_to_seek_to_position_in_cache_file.
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
call fcn.0055420c
push eax
push str.filename
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
push dword [ebp - 0x14]
call fcn.005900a3
pop ecx
and byte [ebp - 0x43], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004ce1b7
mov al, byte [ebp - 0x43]
jmp 0x4eb4de
lea ecx, [ebp - 0x18]
call fcn.004d4b5e
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004d4143
fstp qword [ebp - 0x24]
push dword [ebp - 0x14]
push 1
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.005958af
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call fcn.005900a3
pop ecx
cmp dword [ebp - 0x10], 1
je 0x4eb4bf
push str.Failed_to_update_cache_file.
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
call fcn.0055420c
push eax
push str.filename
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
and byte [ebp - 0x44], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004ce1b7
mov al, byte [ebp - 0x44]
jmp 0x4eb4de
mov byte [ebp - 0x45], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004ce1b7
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc