Function at 0x46a5b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f60d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4ce0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x38]
call fcn.004c06c0
test eax, eax
jne 0x46a5fe
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov edx, dword [str.No_cache_roots_have_been_set.__Need_to_call_AddRoot_at_least_once.]
mov eax, dword [eax + 0x10]
push edx
call eax
xor al, al
jmp 0x46a815
lea ecx, [esp + 0x3c]
call fcn.00451c20
mov ecx, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x60], ebx
call fcn.00454170
push eax
lea ecx, [esp + 0x40]
call fcn.004516b0
lea ecx, [esp + 0x20]
call fcn.00451c20
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
mov byte [esp + 0x68], 1
call fcn.00469c00
cmp al, bl
jne 0x46a67a
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov edx, dword [str.Failed_to_convert_resource_name_to_filename]
mov eax, dword [eax + 0x10]
push edx
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call fcn.00451e70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00451e70
xor al, al
jmp 0x46a815
push 0x542c90
lea ecx, [esp + 0x24]
call fcn.004c06c0
push eax
call fcn.004dd16a
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x46a6e6
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Failed_to_open_file
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [esp + 0x20]
call fcn.004c06c0
mov edx, dword [edi + 0x28]
push eax
push str.filename
mov ecx, esi
call edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call fcn.00451e70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00451e70
xor al, al
jmp 0x46a815
push ebx
push 0xa
push edi
call fcn.004de7fe
add esp, 0xc
test eax, eax
je 0x46a74e
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_seek_to_position_in_cache_file.
mov ecx, esi
call edx
mov ebp, dword [esi]
lea ecx, [esp + 0x20]
call fcn.004c06c0
push eax
mov eax, dword [ebp + 0x28]
push str.filename
mov ecx, esi
call eax
push edi
call fcn.004dd02a
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call fcn.00451e70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00451e70
xor al, al
jmp 0x46a815
lea ecx, [esp + 0x14]
call fcn.00466a10
mov ecx, dword [esp + 0x6c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.00466580
fstp qword [esp + 0x18]
push edi
push 1
lea edx, [esp + 0x20]
push 8
push edx
call fcn.004de6ea
push edi
mov esi, eax
call fcn.004dd02a
add esp, 0x14
cmp esi, 1
je 0x46a7e7
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_update_cache_file.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [esp + 0x20]
call fcn.004c06c0
push eax
mov eax, dword [edi + 0x28]
push str.filename
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 1
call fcn.00466a20
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call fcn.00451e70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00451e70
xor al, al
jmp 0x46a815
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 1
call fcn.00466a20
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call fcn.00451e70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00451e70
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0xc