Function at 0x489b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baf18
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x168], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.0042a510
lea ecx, [esi + 0x2c0]
mov dword [ebp - 4], 0
call fcn.0045b2d0
test eax, eax
jne 0x489c0b
mov eax, dword [edi]
mov ecx, edi
push dword [0x689eb0]
call dword [eax + 0x14]
mov byte [ebp - 0x15d], 0
jmp 0x489e72
push 0x118
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x15c]
call fcn.004038e0
push edi
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x164]
mov ecx, esi
call fcn.00488fc0
test al, al
jne 0x489c62
mov eax, dword [edi]
mov ecx, edi
push dword [0x689eb4]
call dword [eax + 0x14]
mov byte [ebp - 0x15d], 0
jmp 0x489e67
cmp byte [esi + 0x2bc], 0
lea eax, [esi + 0x2c]
je 0x489c8b
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
call fcn.004894b0
add esp, 8
test al, al
je 0x489d64
push 0x60bf1c
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
call fcn.00447320
add esp, 8
mov dword [ebp - 0x164], eax
test eax, eax
jne 0x489cfe
cmp byte [esi + 0x2bc], al
je 0x489cce
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
call fcn.00489ad0
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_open_file
call dword [eax + 0x14]
mov esi, dword [edi]
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x2c]
mov byte [ebp - 0x15d], 0
jmp 0x489e67
push 0
push 0xa
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x489d70
cmp byte [esi + 0x2bc], 0
je 0x489d31
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
call fcn.00489ad0
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_seek_to_position_in_cache_file.
call dword [eax + 0x14]
mov esi, dword [edi]
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x2c]
push dword [ebp - 0x164]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 0x15d], 0
jmp 0x489e67
lea ecx, [ebp - 0x14]
call fcn.0043dfd0
push dword [ebp - 0x168]
mov byte [ebp - 4], 2
call fcn.0043e6d0
add esp, 4
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
fstp qword [ebp - 0x44]
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
call fcn.00434a70
push 8
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3c]
call fcn.00435260
call fcn.0040de50
test al, al
jne 0x489dcb
lea ecx, [ebp - 0x3c]
call fcn.0043a870
push dword [ebp - 0x164]
lea ecx, [ebp - 0x3c]
push 1
push 8
call fcn.00438c00
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp byte [esi + 0x2bc], 0
je 0x489e1a
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
call fcn.00489ad0
add esp, 8
cmp dword [ebp - 0x168], 1
je 0x489e50
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_update_cache_file.
call dword [eax + 0x14]
mov esi, dword [edi]
lea ecx, [ebp - 0x15c]
call fcn.00406960
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x2c]
mov byte [ebp - 0x15d], 0
jmp 0x489e57
mov byte [ebp - 0x15d], 1
lea ecx, [ebp - 0x3c]
call fcn.00434c90
lea ecx, [ebp - 0x14]
call fcn.0043dfe0
lea ecx, [ebp - 0x15c]
call fcn.00403970
lea ecx, [ebp - 0x20]
call fcn.0042a5e0
mov al, byte [ebp - 0x15d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0xc