Function at 0x48a6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bee68
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x692c00]
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.0042a6f0
lea ecx, [esi + 0x2c0]
mov dword [ebp - 4], 0
call fcn.0045ca80
test eax, eax
jne 0x48a72b
mov eax, dword [edi]
mov ecx, edi
push dword [0x68feb0]
call dword [eax + 0x14]
mov byte [ebp - 0x15d], 0
jmp 0x48a992
push 0x118
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x15c]
call fcn.00403910
push edi
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x164]
mov ecx, esi
call fcn.00489b90
test al, al
jne 0x48a782
mov eax, dword [edi]
mov ecx, edi
push dword [0x68feb4]
call dword [eax + 0x14]
mov byte [ebp - 0x15d], 0
jmp 0x48a987
cmp byte [esi + 0x2bc], 0
lea eax, [esi + 0x2c]
je 0x48a7ab
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406990
push eax
call fcn.0048a070
add esp, 8
test al, al
je 0x48a884
push 0x611330
lea ecx, [ebp - 0x15c]
call fcn.00406990
push eax
call fcn.004475c0
add esp, 8
mov dword [ebp - 0x164], eax
test eax, eax
jne 0x48a81e
cmp byte [esi + 0x2bc], al
je 0x48a7ee
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406990
push eax
call fcn.0048a5f0
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.00406990
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x2c]
mov byte [ebp - 0x15d], 0
jmp 0x48a987
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 0x48a890
cmp byte [esi + 0x2bc], 0
je 0x48a851
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406990
push eax
call fcn.0048a5f0
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.00406990
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 0x48a987
lea ecx, [ebp - 0x14]
call fcn.0043e270
push dword [ebp - 0x168]
mov byte [ebp - 4], 2
call fcn.0043e970
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.00434d00
push 8
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3c]
call fcn.004354f0
call fcn.0040df80
test al, al
jne 0x48a8eb
lea ecx, [ebp - 0x3c]
call fcn.0043ab10
push dword [ebp - 0x164]
lea ecx, [ebp - 0x3c]
push 1
push 8
call fcn.00438ea0
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 0x48a93a
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00406990
push eax
call fcn.0048a5f0
add esp, 8
cmp dword [ebp - 0x168], 1
je 0x48a970
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.00406990
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x2c]
mov byte [ebp - 0x15d], 0
jmp 0x48a977
mov byte [ebp - 0x15d], 1
lea ecx, [ebp - 0x3c]
call fcn.00434f20
lea ecx, [ebp - 0x14]
call fcn.0043e280
lea ecx, [ebp - 0x15c]
call fcn.004039a0
lea ecx, [ebp - 0x20]
call fcn.0042a7c0
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.005b34c8
mov esp, ebp
pop ebp
ret 0xc