Function at 0x468070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bea90
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6926dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461720
mov ecx, dword [ebp - 0x58]
add ecx, 0x128
call fcn.004a9e50
test eax, eax
jne 0x4680e0
mov eax, dword [str.No_cache_roots_have_been_set.__Need_to_call_AddRoot_at_least_once.]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
xor al, al
jmp 0x4683d9
lea ecx, [ebp - 0x4c]
call fcn.00411ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419c10
push eax
mov ecx, dword [ebp - 0x58]
call fcn.004670f0
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x46814b
mov eax, dword [str.Failed_to_convert_resource_name_to_filename]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x4d]
jmp 0x4683d9
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x124]
test edx, edx
je 0x4681a5
mov eax, dword [ebp - 0x58]
add eax, 0x10
push eax
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
call fcn.00466a20
add esp, 8
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x4681a5
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x4e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x4e]
jmp 0x4683d9
push 0x60f230
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
call fcn.0057c974
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x468240
mov edx, dword [ebp - 0x58]
movzx eax, byte [edx + 0x124]
test eax, eax
je 0x4681ea
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
call fcn.00466bd0
add esp, 8
push str.Failed_to_open_file
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
call edx
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
push 0x60f248
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x4f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x4f]
jmp 0x4683d9
push 0
push 0xa
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0058160b
add esp, 0xc
test eax, eax
je 0x4682e0
mov edx, dword [ebp - 0x58]
movzx eax, byte [edx + 0x124]
test eax, eax
je 0x46827e
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
call fcn.00466bd0
add esp, 8
push str.Failed_to_seek_to_position_in_cache_file.
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
call edx
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
push 0x60f280
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0057c080
add esp, 4
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x50]
jmp 0x4683d9
lea ecx, [ebp - 0x18]
call fcn.00442f20
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00442160
add esp, 4
fstp qword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push eax
push 1
push 8
lea ecx, [ebp - 0x24]
push ecx
call fcn.0057d4d4
add esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0057c080
add esp, 4
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax + 0x124]
test ecx, ecx
je 0x468344
mov edx, dword [ebp - 0x58]
add edx, 0x10
push edx
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
call fcn.00466bd0
add esp, 8
cmp dword [ebp - 0x10], 1
je 0x4683a9
push str.Failed_to_update_cache_file.
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x4c]
call fcn.0049ea10
push eax
push 0x60f2ac
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00442f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x51]
jmp 0x4683d9
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00461740
mov byte [ebp - 0x52], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00442f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004123c0
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc