Function at 0x475310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1ac1
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x68ddfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c960
mov ecx, dword [ebp - 0xd8]
add ecx, 0x138
call fcn.0050c460
test eax, eax
jne 0x47538f
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 + 0x14]
call eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
xor al, al
jmp 0x47578e
lea ecx, [ebp - 0x9c]
call fcn.00425440
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x9c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004272b0
push eax
mov ecx, dword [ebp - 0xd8]
call fcn.004747d0
mov byte [ebp - 0xa1], al
movzx eax, byte [ebp - 0xa1]
test eax, eax
jne 0x47541a
mov ecx, dword [str.Failed_to_convert_resource_name_to_filename]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xcd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xcd]
jmp 0x47578e
mov eax, dword [ebp - 0xd8]
movzx ecx, byte [eax + 0x134]
test ecx, ecx
je 0x47548f
mov edx, dword [ebp - 0xd8]
add edx, 0x18
push edx
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
call fcn.00473bd0
add esp, 8
mov byte [ebp - 0xa1], al
movzx eax, byte [ebp - 0xa1]
test eax, eax
jne 0x47548f
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xce], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xce]
jmp 0x47578e
push 0x6054c4
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
call fcn.0058fd80
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x475549
mov ecx, dword [ebp - 0xd8]
movzx edx, byte [ecx + 0x134]
test edx, edx
je 0x4754e4
mov eax, dword [ebp - 0xd8]
add eax, 0x18
push eax
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
call fcn.00474220
add esp, 8
push str.Failed_to_open_file
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
push 0x6054dc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xcf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xcf]
jmp 0x47578e
push 0
push 0xa
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00594b67
add esp, 0xc
test eax, eax
je 0x475601
mov edx, dword [ebp - 0xd8]
movzx eax, byte [edx + 0x134]
test eax, eax
je 0x475590
mov ecx, dword [ebp - 0xd8]
add ecx, 0x18
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
call fcn.00474220
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 + 0x14]
call edx
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
push 0x605514
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0058f640
add esp, 4
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xd0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xd0]
jmp 0x47578e
lea ecx, [ebp - 0xa0]
call fcn.00444cb0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00443f30
add esp, 4
fstp qword [ebp - 0xac]
lea ecx, [ebp - 0xcc]
call fcn.00410b10
mov byte [ebp - 4], 2
push 8
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00413040
call fcn.00424cc0
movzx ecx, al
test ecx, ecx
jne 0x47565c
lea ecx, [ebp - 0xcc]
call fcn.00410e80
mov edx, dword [ebp - 0x14]
push edx
push 1
push 8
lea ecx, [ebp - 0xcc]
call fcn.004b6d60
push eax
call fcn.005907ee
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0058f640
add esp, 4
mov ecx, dword [ebp - 0xd8]
movzx edx, byte [ecx + 0x134]
test edx, edx
je 0x4756b6
mov eax, dword [ebp - 0xd8]
add eax, 0x18
push eax
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
call fcn.00474220
add esp, 8
cmp dword [ebp - 0x10], 1
je 0x475740
push str.Failed_to_update_cache_file.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x9c]
call fcn.004272b0
push eax
push 0x605540
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xd1], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.00412440
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00444d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xd1]
jmp 0x47578e
mov ecx, dword [ebp - 0xd8]
add ecx, 0x118
call fcn.0045c980
mov byte [ebp - 0xd2], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.00412440
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00444d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425550
mov al, byte [ebp - 0xd2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc