Function at 0x4778d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cefb0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6b4774]
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.00470f80
mov ecx, dword [ebp - 0x58]
add ecx, 0x128
call fcn.00563420
test eax, eax
jne 0x477940
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.00470fa0
xor al, al
jmp 0x477c39
lea ecx, [ebp - 0x4c]
call fcn.00421800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00429440
push eax
mov ecx, dword [ebp - 0x58]
call fcn.00476950
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x4779ab
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.00470fa0
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x4d]
jmp 0x477c39
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x124]
test edx, edx
je 0x477a05
mov eax, dword [ebp - 0x58]
add eax, 0x10
push eax
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
call fcn.00476280
add esp, 8
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x477a05
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00470fa0
mov byte [ebp - 0x4e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x4e]
jmp 0x477c39
push 0x623230
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
call fcn.0058c9c3
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x477aa0
mov edx, dword [ebp - 0x58]
movzx eax, byte [edx + 0x124]
test eax, eax
je 0x477a4a
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
call fcn.00476430
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.0055afa0
push eax
push 0x623248
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.00470fa0
mov byte [ebp - 0x4f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x4f]
jmp 0x477c39
push 0
push 0xa
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005914f6
add esp, 0xc
test eax, eax
je 0x477b40
mov edx, dword [ebp - 0x58]
movzx eax, byte [edx + 0x124]
test eax, eax
je 0x477ade
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
call fcn.00476430
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.0055afa0
push eax
push 0x623280
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.0058bf50
add esp, 4
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00470fa0
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x50]
jmp 0x477c39
lea ecx, [ebp - 0x18]
call fcn.00452780
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.004519c0
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.0058d3d9
add esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0058bf50
add esp, 4
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax + 0x124]
test ecx, ecx
je 0x477ba4
mov edx, dword [ebp - 0x58]
add edx, 0x10
push edx
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
call fcn.00476430
add esp, 8
cmp dword [ebp - 0x10], 1
je 0x477c09
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.0055afa0
push eax
push 0x6232ac
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.00470fa0
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004527d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x51]
jmp 0x477c39
mov ecx, dword [ebp - 0x58]
add ecx, 0x108
call fcn.00470fa0
mov byte [ebp - 0x52], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004527d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc