Function at 0x490080
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x4eb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x518], ecx
lea ecx, [ebp - 0x520]
call fcn.004097c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax + 0x16b0]
push ecx
push 0x4cc454
lea edx, [ebp - 0x520]
push edx
call fcn.00409d70
add esp, 0xc
lea ecx, [ebp - 0x520]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490111
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.00409680
jmp 0x490395
push 0x2f8
push 0
lea eax, [ebp - 0x308]
push eax
call fcn.00433560
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
add eax, 0x76c
push eax
lea ecx, [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
add edx, 0xce4
push edx
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x518]
add ecx, 0x15ec
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4cc47c
lea ecx, [ebp - 0x520]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043c75a
add esp, 8
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
jne 0x4901d4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.00409680
jmp 0x490395
mov ecx, dword [ebp - 0x51c]
push ecx
push 1
push 0x2f8
lea edx, [ebp - 0x308]
push edx
call fcn.0043c580
add esp, 0x10
mov ecx, dword [ebp - 0x518]
add ecx, 0x15ec
call fcn.00412150
movzx eax, al
test eax, eax
je 0x4902de
mov dword [ebp - 0x514], 1
lea ecx, [ebp - 0x520]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x510]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x514]
push edx
mov ecx, dword [ebp - 0x518]
add ecx, 0x15f0
call fcn.0041f5d0
mov ecx, dword [ebp - 0x518]
add ecx, 0x15f0
call fcn.0041f540
mov dword [ebp - 0x52c], eax
mov eax, dword [ebp - 0x51c]
push eax
push 1
push 4
lea ecx, [ebp - 0x52c]
push ecx
call fcn.0043c580
add esp, 0x10
mov dword [ebp - 0x524], 0
jmp 0x490294
mov edx, dword [ebp - 0x524]
add edx, 1
mov dword [ebp - 0x524], edx
mov ecx, dword [ebp - 0x518]
add ecx, 0x15f0
call fcn.0041f540
cmp dword [ebp - 0x524], eax
jae 0x4902de
mov eax, dword [ebp - 0x51c]
push eax
push 1
push 0x20c
mov ecx, dword [ebp - 0x524]
push ecx
mov ecx, dword [ebp - 0x518]
add ecx, 0x15f0
call fcn.0041f520
push eax
call fcn.0043c580
add esp, 0x10
jmp 0x490285
mov ecx, dword [ebp - 0x518]
add ecx, 0x15fc
call fcn.0041f540
mov dword [ebp - 0x530], eax
mov edx, dword [ebp - 0x51c]
push edx
push 1
push 4
lea eax, [ebp - 0x530]
push eax
call fcn.0043c580
add esp, 0x10
mov dword [ebp - 0x528], 0
jmp 0x49032a
mov ecx, dword [ebp - 0x528]
add ecx, 1
mov dword [ebp - 0x528], ecx
mov ecx, dword [ebp - 0x518]
add ecx, 0x15fc
call fcn.0041f540
cmp dword [ebp - 0x528], eax
jae 0x490374
mov edx, dword [ebp - 0x51c]
push edx
push 1
push 0x20c
mov eax, dword [ebp - 0x528]
push eax
mov ecx, dword [ebp - 0x518]
add ecx, 0x15fc
call fcn.0041f520
push eax
call fcn.0043c580
add esp, 0x10
jmp 0x49031b
mov ecx, dword [ebp - 0x51c]
push ecx
call fcn.0043c850
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.00409680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e9de
mov esp, ebp
pop ebp
ret 4