Function at 0x48e8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0cfc
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, ecx
push edi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x12c], eax
call fcn.0044c630
lea ecx, [edi + 0x2c0]
mov dword [ebp - 4], 0
call fcn.0059ef70
test eax, eax
jne 0x48e949
mov edx, dword [esi]
mov eax, dword [str.No_cache_roots_have_been_set.__Need_to_call_AddRoot_at_least_once.]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c660
xor al, al
jmp 0x48ebec
lea ecx, [ebp - 0x128]
call fcn.00412fd0
push esi
lea eax, [ebp - 0x128]
push eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0048de90
test al, al
jne 0x48e98c
mov edx, dword [esi]
mov eax, dword [str.Failed_to_convert_resource_name_to_filename]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00413060
jmp 0x48e930
cmp byte [edi + 0x2bc], 0
je 0x48e9b1
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
call fcn.0048e250
add esp, 8
test al, al
je 0x48e97b
push 0x605ca0
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
call fcn.0044d0a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x48ea2c
cmp byte [edi + 0x2bc], al
je 0x48e9f0
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
call fcn.0048e430
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_open_file
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [ebp - 0x128]
call fcn.00414880
mov edx, dword [edi + 0x2c]
push eax
push str.filename
mov ecx, esi
call edx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00413060
jmp 0x48e930
push 0
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x48eaa5
cmp byte [edi + 0x2bc], 0
je 0x48ea5f
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
call fcn.0048e430
add esp, 8
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_seek_to_position_in_cache_file.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
mov eax, dword [edi + 0x2c]
push str.filename
mov ecx, esi
call eax
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00413060
jmp 0x48e930
lea ecx, [ebp - 0x130]
call fcn.0045be20
mov ecx, dword [ebp - 0x12c]
push ecx
mov byte [ebp - 4], 2
call fcn.0045b850
fstp qword [ebp - 0x144]
add esp, 4
lea ecx, [ebp - 0x160]
call fcn.0041b9a0
push 8
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 3
call fcn.0041ca10
call fcn.00471cd0
test al, al
jne 0x48eb00
lea ecx, [ebp - 0x160]
call fcn.0041bc60
push ebx
push 1
push 8
lea ecx, [ebp - 0x160]
call fcn.0041b6d0
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
push ebx
mov dword [ebp - 0x12c], eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
cmp byte [edi + 0x2bc], 0
je 0x48eb48
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
call fcn.0048e430
add esp, 8
cmp dword [ebp - 0x12c], 1
je 0x48ebab
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_update_cache_file.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [ebp - 0x128]
call fcn.00414880
push eax
mov eax, dword [edi + 0x2c]
push str.filename
mov ecx, esi
call eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 2
call fcn.0041c170
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.0045be30
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00413060
jmp 0x48e930
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 2
call fcn.0041c170
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.0045be30
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00413060
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c660
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0xc