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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.exe_public:_int___thiscall_CNsCode::CheckCode_void_
test eax, eax
je 0x4a16d3
push 0x4cbb8b
mov eax, dword [ebp + 8]
push eax
call fcn.0043f360
add esp, 8
mov eax, 1
jmp 0x4a194e
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.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 0x4a178f
push 0x4d0bcc
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x4a171c
xor eax, eax
jmp 0x4a194e
push 0x64
push 0
lea ecx, [ebp - 0xcc]
push ecx
call fcn.00433ca0
add esp, 0xc
mov edx, dword [ebp - 0x14c]
push edx
push 0x40
push 1
lea eax, [ebp - 0xcc]
push eax
call fcn.0043f624
add esp, 0x10
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0043cf8f
add esp, 4
push 0
push 0x40
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x144]
add eax, 0xc
push eax
call sym.Install_adv.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
push 0x10
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00440430
add esp, 0xc
jmp 0x4a194c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0043e7b3
add esp, 4
push 0x64
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00433ca0
add esp, 0xc
call fcn.0043e792
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call fcn.0043e792
cdq
mov ecx, 0x186a0
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x989680
div ecx
push edx
push str.L_07d_05d_03d
lea edx, [ebp - 0x130]
push edx
call fcn.0041d3b0
add esp, 0x14
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043f360
add esp, 8
push 0x4d0be4
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4a1833
xor eax, eax
jmp 0x4a194e
mov edx, dword [ebp - 0x148]
push edx
call fcn.0043cf8f
add esp, 4
push 0
push 0
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_FileTime_wchar_t_const___struct__SYSTEMTIME___struct__SYSTEMTIME___struct__SYSTEMTIME__
add esp, 0x10
push 0x64
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00433ca0
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
movzx eax, word [ebp - 0x134]
push eax
movzx ecx, word [ebp - 0x136]
push ecx
movzx edx, word [ebp - 0x138]
push edx
movzx eax, word [ebp - 0x13a]
push eax
movzx ecx, word [ebp - 0x13e]
push ecx
movzx edx, word [ebp - 0x140]
push edx
push str.NS_d_02d_02d_02d_02d_02d_s
lea eax, [ebp - 0x68]
push eax
call fcn.0041d3b0
add esp, 0x24
push 1
push 0x20
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x144]
add edx, 0xc
push edx
call sym.Install_adv.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
call fcn.0043d010
add esp, 4
cmp eax, 0x40
je 0x4a18e8
xor eax, eax
jmp 0x4a194e
push 0x4d0c08
mov ecx, dword [ebp - 0x144]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4a1914
xor eax, eax
jmp 0x4a194e
mov ecx, dword [ebp - 0x148]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0043d010
add esp, 4
push eax
push 1
lea eax, [ebp - 0x68]
push eax
call fcn.0043ccbf
add esp, 0x10
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0043cf8f
add esp, 4
mov eax, 1
jmp 0x4a194e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 4