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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b22e5
mov eax, dword fs:[0]
push eax
sub esp, 0xeec
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xea4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_bool___thiscall_CNsCode::ActiveCode2_char_const___int_
movzx edx, al
test edx, edx
je 0x4a202a
mov eax, dword [ebp - 0xea4]
movzx ecx, byte [eax + 0x4c]
test ecx, ecx
je 0x4a2020
xor eax, eax
jmp 0x4a2859
mov eax, 1
jmp 0x4a2859
push 0x64
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.00433ca0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.0043f360
add esp, 8
lea edx, [ebp - 0x74]
push edx
call fcn.0043d010
add esp, 4
mov dword [ebp - 0xef4], eax
push 0
mov eax, dword [ebp - 0xef4]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0xea4]
add edx, 0xc
push edx
call sym.Install_adv.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x74]
cmp edx, 0x4e
jne 0x4a24e6
lea ecx, [ebp - 0xea8]
call fcn.00425b00
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4d0a84
lea edx, [ebp - 0xea8]
push edx
call fcn.00425b20
add esp, 0x10
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::constructor_void_
mov byte [ebp - 4], 1
push 0x3e8
push 3
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::SetRetry_int__int_
push 0xbb8
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::SetTimeout_unsigned_long_int_
push 0x50
push 0x1f4
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0xea8]
call fcn.00419ce0
push eax
lea ecx, [ebp - 0xea8]
call fcn.00422500
push eax
mov ecx, dword [ebp - 0xea4]
add ecx, 4
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_int___thiscall_CNsNet::Post_wchar_t_const___void___int__char___int__int_
mov dword [ebp - 0xef0], eax
cmp dword [ebp - 0xef0], 0
jne 0x4a2175
mov dword [ebp - 0xeec], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xeec]
jmp 0x4a2859
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x4c0]
push edx
call fcn.004403a0
add esp, 8
test eax, eax
je 0x4a21c2
mov dword [ebp - 0xee8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xee8]
jmp 0x4a2859
mov eax, dword [ebp - 0xea4]
add eax, 0x14
push eax
lea ecx, [ebp - 0xeb8]
call fcn.004a8200
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xea4]
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 0x4a2203
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4d0b74
mov ecx, dword [ebp - 0xea4]
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 - 0xeb0], eax
cmp dword [ebp - 0xeb0], 0
jne 0x4a2270
mov dword [ebp - 0xee4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a8230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xee4]
jmp 0x4a2859
mov ecx, dword [ebp - 0xeb0]
push ecx
call fcn.0043cf8f
add esp, 4
push 0
push 0
lea edx, [ebp - 0xce0]
push edx
mov ecx, dword [ebp - 0xea4]
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 0xc8
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00433ca0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x74]
push edx
movzx eax, word [ebp - 0xcd4]
push eax
movzx ecx, word [ebp - 0xcd6]
push ecx
movzx edx, word [ebp - 0xcd8]
push edx
movzx eax, word [ebp - 0xcda]
push eax
movzx ecx, word [ebp - 0xcde]
push ecx
movzx edx, word [ebp - 0xce0]
push edx
push 0x4d0b7c
lea eax, [ebp - 0x2cc]
push eax
call fcn.0041d3b0
add esp, 0x28
push 1
push 0x40
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0xea4]
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 - 0x2cc]
push eax
call fcn.0043d010
add esp, 4
cmp eax, 0x80
je 0x4a2378
mov dword [ebp - 0xee0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a8230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xee0]
jmp 0x4a2859
push 0x4d0b9c
mov ecx, dword [ebp - 0xea4]
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 - 0xeb0], eax
cmp dword [ebp - 0xeb0], 0
jne 0x4a23e5
mov dword [ebp - 0xedc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a8230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xedc]
jmp 0x4a2859
mov ecx, dword [ebp - 0xeb0]
push ecx
lea edx, [ebp - 0x2cc]
push edx
call fcn.0043d010
add esp, 4
push eax
push 1
lea eax, [ebp - 0x2cc]
push eax
call fcn.0043ccbf
add esp, 0x10
mov ecx, dword [ebp - 0xeb0]
push ecx
push 0x400
push 1
lea edx, [ebp - 0xcc0]
push edx
call fcn.0043ccbf
add esp, 0x10
mov eax, dword [ebp - 0xeb0]
push eax
call fcn.0043cf8f
add esp, 4
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_bool___thiscall_CNsCode::WriteCodeEx_wchar_t_const__
movzx ecx, al
test ecx, ecx
jne 0x4a249c
mov dword [ebp - 0xed8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a8230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xed8]
jmp 0x4a2859
mov dword [ebp - 0xed4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a8230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.004199d0
mov eax, dword [ebp - 0xed4]
jmp 0x4a2859
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x74]
cmp ecx, 0x4c
jne 0x4a2853
mov edx, dword [ebp - 0xea4]
add edx, 0x14
push edx
lea ecx, [ebp - 0xeb4]
call fcn.004a8200
mov dword [ebp - 4], 3
push 0x4d0ba4
mov ecx, dword [ebp - 0xea4]
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 - 0xeac], eax
cmp dword [ebp - 0xeac], 0
jne 0x4a2567
mov dword [ebp - 0xed0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xed0]
jmp 0x4a2859
push 0x64
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.00433ca0
add esp, 0xc
mov ecx, dword [ebp - 0xeac]
push ecx
push 0x40
push 1
lea edx, [ebp - 0xd8]
push edx
call fcn.0043f624
add esp, 0x10
mov eax, dword [ebp - 0xeac]
push eax
call fcn.0043cf8f
add esp, 4
push 0
push 0x40
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xea4]
add edx, 0xc
push edx
call sym.Install_adv.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0xcd0]
push eax
mov ecx, dword [ebp - 0xea4]
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 - 0x13c]
push ecx
call fcn.00433ca0
add esp, 0xc
movzx edx, word [ebp - 0xcc4]
push edx
movzx eax, word [ebp - 0xcc6]
push eax
movzx ecx, word [ebp - 0xcc8]
push ecx
movzx edx, word [ebp - 0xcca]
push edx
movzx eax, word [ebp - 0xcce]
push eax
movzx ecx, word [ebp - 0xcd0]
push ecx
push str.NS_d_02d_02d_02d_02d_02d
lea edx, [ebp - 0x13c]
push edx
call fcn.0041d3b0
add esp, 0x20
push 0x10
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0043d2d0
add esp, 0xc
test eax, eax
je 0x4a2679
mov dword [ebp - 0xef8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xef8]
jmp 0x4a2859
push 0x10
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.0043d2d0
add esp, 0xc
test eax, eax
je 0x4a26b9
mov dword [ebp - 0xebc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xebc]
jmp 0x4a2859
push 0xc8
push 0
lea ecx, [ebp - 0x204]
push ecx
call fcn.00433ca0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xd8]
push eax
push str._s_s
lea ecx, [ebp - 0x204]
push ecx
call fcn.0041d3b0
add esp, 0x10
push 1
push 0x40
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp - 0xea4]
add eax, 0xc
push eax
call sym.Install_adv.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
call fcn.0043d010
add esp, 4
cmp eax, 0x80
je 0x4a2748
mov dword [ebp - 0xec0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xec0]
jmp 0x4a2859
push 0x4d0bb4
mov ecx, dword [ebp - 0xea4]
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 - 0xeac], eax
cmp dword [ebp - 0xeac], 0
jne 0x4a2797
mov dword [ebp - 0xec4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xec4]
jmp 0x4a2859
mov edx, dword [ebp - 0xeac]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.0043d010
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x204]
push ecx
call fcn.0043ccbf
add esp, 0x10
mov edx, dword [ebp - 0xeac]
push edx
push 0x400
push 1
lea eax, [ebp - 0x8c0]
push eax
call fcn.0043ccbf
add esp, 0x10
mov ecx, dword [ebp - 0xeac]
push ecx
call fcn.0043cf8f
add esp, 4
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0xea4]
call sym.Install_adv.exe_public:_bool___thiscall_CNsCode::WriteCodeEx_wchar_t_const__
movzx edx, al
test edx, edx
jne 0x4a282d
mov dword [ebp - 0xec8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xec8]
jmp 0x4a2859
mov dword [ebp - 0xecc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a8230
mov eax, dword [ebp - 0xecc]
jmp 0x4a2859
xor eax, eax
jmp 0x4a2859
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 8