Function at 0x56f980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c050
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x108]
mov ecx, ebx
call fcn.0056fcb0
lea ecx, [esi + 0x128]
call fcn.005953b0
test eax, eax
jne 0x56f9f4
mov ecx, dword [ebp + 0x10]
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
mov ecx, ebx
call fcn.0056fcc0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x40]
call fcn.0053ba20
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0053ed40
push eax
mov ecx, esi
call fcn.0056edf0
test al, al
jne 0x56fa57
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [str.Failed_to_convert_resource_name_to_filename]
mov edx, dword [edx + 0x10]
push eax
call edx
mov ecx, ebx
call fcn.0056fcc0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0053bcf0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x124], 0
je 0x56fa79
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.00595640
push eax
call fcn.0056e810
add esp, 8
test al, al
je 0x56fa2b
push 0x6b0740
lea ecx, [ebp - 0x40]
call fcn.00595640
push eax
call fcn.00629805
mov edi, eax
add esp, 8
test edi, edi
jne 0x56fadf
cmp byte [esi + 0x124], al
je 0x56fab2
add esi, 0x10
push esi
lea ecx, [ebp - 0x40]
call fcn.00595640
push eax
call fcn.0056e9c0
add esp, 8
mov esi, dword [ebp + 0x10]
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, [ebp - 0x40]
call fcn.00595640
mov edx, dword [edi + 0x28]
push eax
push str.filename
mov ecx, esi
call edx
jmp 0x56fa2b
push 0
push 0xa
push edi
call fcn.00527c65
add esp, 0xc
test eax, eax
je 0x56fb4a
cmp byte [esi + 0x124], 0
je 0x56fb0e
add esi, 0x10
push esi
lea ecx, [ebp - 0x40]
call fcn.00595640
push eax
call fcn.0056e9c0
add esp, 8
mov esi, dword [ebp + 0x10]
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 eax, dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp + 0x10], eax
call fcn.00595640
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x28]
push str.filename
mov ecx, esi
call eax
push edi
call fcn.00527573
add esp, 4
jmp 0x56fa2b
lea ecx, [ebp - 0x10]
call fcn.00550a60
mov ecx, dword [ebp + 0xc]
push ecx
mov byte [ebp - 4], 1
call fcn.005505a0
fstp qword [ebp - 0x18]
push edi
push 1
lea edx, [ebp - 0x18]
push 8
push edx
call fcn.005279cd
push edi
mov dword [ebp + 8], eax
call fcn.00527573
add esp, 0x18
cmp byte [esi + 0x124], 0
je 0x56fb9a
add esi, 0x10
push esi
lea ecx, [ebp - 0x40]
call fcn.00595640
push eax
call fcn.0056e9c0
add esp, 8
cmp dword [ebp + 8], 1
je 0x56fbe0
mov esi, dword [ebp + 0x10]
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, [ebp - 0x40]
call fcn.00595640
push eax
mov eax, dword [edi + 0x28]
push str.filename
mov ecx, esi
call eax
mov ecx, ebx
call fcn.0056fcc0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00550a70
jmp 0x56fa32
mov ecx, ebx
call fcn.0056fcc0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00550a70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0053bcf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc