Function at 0x482c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a448c
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x676664]
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.00441120
lea ecx, [edi + 0x2c0]
mov dword [ebp - 4], 0
call fcn.00593250
test eax, eax
jne 0x482ce9
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.00441150
xor al, al
jmp 0x482f8c
lea ecx, [ebp - 0x128]
call fcn.0040c500
push esi
lea eax, [ebp - 0x128]
push eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00482230
test al, al
jne 0x482d2c
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.0040c590
jmp 0x482cd0
cmp byte [edi + 0x2bc], 0
je 0x482d51
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.0040d9a0
push eax
call fcn.004825f0
add esp, 8
test al, al
je 0x482d1b
push 0x5f8968
lea ecx, [ebp - 0x128]
call fcn.0040d9a0
push eax
call fcn.00441b90
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x482dcc
cmp byte [edi + 0x2bc], al
je 0x482d90
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.0040d9a0
push eax
call fcn.004827d0
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.0040d9a0
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.0040c590
jmp 0x482cd0
push 0
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x482e45
cmp byte [edi + 0x2bc], 0
je 0x482dff
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.0040d9a0
push eax
call fcn.004827d0
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.0040d9a0
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.0040c590
jmp 0x482cd0
lea ecx, [ebp - 0x130]
call fcn.004508d0
mov ecx, dword [ebp - 0x12c]
push ecx
mov byte [ebp - 4], 2
call fcn.00450300
fstp qword [ebp - 0x144]
add esp, 4
lea ecx, [ebp - 0x160]
call fcn.00410e50
push 8
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 3
call fcn.00411e60
call fcn.00416300
test al, al
jne 0x482ea0
lea ecx, [ebp - 0x160]
call fcn.00411110
push ebx
push 1
push 8
lea ecx, [ebp - 0x160]
call fcn.00410b80
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 0x482ee8
add edi, 0x2c
push edi
lea ecx, [ebp - 0x128]
call fcn.0040d9a0
push eax
call fcn.004827d0
add esp, 8
cmp dword [ebp - 0x12c], 1
je 0x482f4b
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.0040d9a0
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.00411620
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.004508e0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.0040c590
jmp 0x482cd0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 2
call fcn.00411620
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.004508e0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.0040c590
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.00441150
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.0059af98
mov esp, ebp
pop ebp
ret 0xc