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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abad5
mov eax, dword fs:[0]
push eax
sub esp, 0xeec
mov eax, dword [0x4e3074]
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_silent.exe_public:_bool___thiscall_CNsCode::ActiveCode2_char_const___int_
movzx edx, al
test edx, edx
je 0x49c08a
mov eax, dword [ebp - 0xea4]
movzx ecx, byte [eax + 0x4c]
test ecx, ecx
je 0x49c080
xor eax, eax
jmp 0x49c8b9
mov eax, 1
jmp 0x49c8b9
push 0x64
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.00456880
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.0045f5c0
add esp, 8
lea edx, [ebp - 0x74]
push edx
call fcn.0045cd90
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_silent.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 0x49c546
lea ecx, [ebp - 0xea8]
call fcn.004210e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c8f64
lea edx, [ebp - 0xea8]
push edx
call fcn.00421100
add esp, 0x10
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::constructor_void_
mov byte [ebp - 4], 1
push 0x3e8
push 3
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::SetRetry_int__int_
push 0xbb8
lea ecx, [ebp - 0xea0]
call sym.Install_silent.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.00406e60
push eax
lea ecx, [ebp - 0xea8]
call fcn.00406e80
push eax
mov ecx, dword [ebp - 0xea4]
add ecx, 4
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0xea0]
call sym.Install_silent.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 0x49c1d5
mov dword [ebp - 0xeec], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xeec]
jmp 0x49c8b9
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x4c0]
push edx
call fcn.00460dc0
add esp, 8
test eax, eax
je 0x49c222
mov dword [ebp - 0xee8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xee8]
jmp 0x49c8b9
mov eax, dword [ebp - 0xea4]
add eax, 0x14
push eax
lea ecx, [ebp - 0xeb8]
call fcn.004a2250
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.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 0x49c263
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4c9054
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0xeb0], eax
cmp dword [ebp - 0xeb0], 0
jne 0x49c2d0
mov dword [ebp - 0xee4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xee4]
jmp 0x49c8b9
mov ecx, dword [ebp - 0xeb0]
push ecx
call fcn.0045febd
add esp, 4
push 0
push 0
lea edx, [ebp - 0xce0]
push edx
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.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.00456880
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 0x4c905c
lea eax, [ebp - 0x2cc]
push eax
call fcn.0040cd50
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_silent.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
lea eax, [ebp - 0x2cc]
push eax
call fcn.0045cd90
add esp, 4
cmp eax, 0x80
je 0x49c3d8
mov dword [ebp - 0xee0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xee0]
jmp 0x49c8b9
push 0x4c907c
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0xeb0], eax
cmp dword [ebp - 0xeb0], 0
jne 0x49c445
mov dword [ebp - 0xedc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xedc]
jmp 0x49c8b9
mov ecx, dword [ebp - 0xeb0]
push ecx
lea edx, [ebp - 0x2cc]
push edx
call fcn.0045cd90
add esp, 4
push eax
push 1
lea eax, [ebp - 0x2cc]
push eax
call fcn.0045fdef
add esp, 0x10
mov ecx, dword [ebp - 0xeb0]
push ecx
push 0x400
push 1
lea edx, [ebp - 0xcc0]
push edx
call fcn.0045fdef
add esp, 0x10
mov eax, dword [ebp - 0xeb0]
push eax
call fcn.0045febd
add esp, 4
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_bool___thiscall_CNsCode::WriteCodeEx_wchar_t_const__
movzx ecx, al
test ecx, ecx
jne 0x49c4fc
mov dword [ebp - 0xed8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xed8]
jmp 0x49c8b9
mov dword [ebp - 0xed4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xeb8]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xea0]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xea8]
call fcn.00406dc0
mov eax, dword [ebp - 0xed4]
jmp 0x49c8b9
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x74]
cmp ecx, 0x4c
jne 0x49c8b3
mov edx, dword [ebp - 0xea4]
add edx, 0x14
push edx
lea ecx, [ebp - 0xeb4]
call fcn.004a2250
mov dword [ebp - 4], 3
push 0x4c9084
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0xeac], eax
cmp dword [ebp - 0xeac], 0
jne 0x49c5c7
mov dword [ebp - 0xed0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xed0]
jmp 0x49c8b9
push 0x64
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.00456880
add esp, 0xc
mov ecx, dword [ebp - 0xeac]
push ecx
push 0x40
push 1
lea edx, [ebp - 0xd8]
push edx
call fcn.0045fa86
add esp, 0x10
mov eax, dword [ebp - 0xeac]
push eax
call fcn.0045febd
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_silent.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_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.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.00456880
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.0040cd50
add esp, 0x20
push 0x10
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0045d080
add esp, 0xc
test eax, eax
je 0x49c6d9
mov dword [ebp - 0xef8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xef8]
jmp 0x49c8b9
push 0x10
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.0045d080
add esp, 0xc
test eax, eax
je 0x49c719
mov dword [ebp - 0xebc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xebc]
jmp 0x49c8b9
push 0xc8
push 0
lea ecx, [ebp - 0x204]
push ecx
call fcn.00456880
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.0040cd50
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_silent.exe_void___cdecl_NsEncode_char_const__const__char___int__int_
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
call fcn.0045cd90
add esp, 4
cmp eax, 0x80
je 0x49c7a8
mov dword [ebp - 0xec0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xec0]
jmp 0x49c8b9
push 0x4c9094
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0xeac], eax
cmp dword [ebp - 0xeac], 0
jne 0x49c7f7
mov dword [ebp - 0xec4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xec4]
jmp 0x49c8b9
mov edx, dword [ebp - 0xeac]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.0045cd90
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x204]
push ecx
call fcn.0045fdef
add esp, 0x10
mov edx, dword [ebp - 0xeac]
push edx
push 0x400
push 1
lea eax, [ebp - 0x8c0]
push eax
call fcn.0045fdef
add esp, 0x10
mov ecx, dword [ebp - 0xeac]
push ecx
call fcn.0045febd
add esp, 4
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0xea4]
call sym.Install_silent.exe_public:_bool___thiscall_CNsCode::WriteCodeEx_wchar_t_const__
movzx edx, al
test edx, edx
jne 0x49c88d
mov dword [ebp - 0xec8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xec8]
jmp 0x49c8b9
mov dword [ebp - 0xecc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xeb4]
call fcn.004a2280
mov eax, dword [ebp - 0xecc]
jmp 0x49c8b9
xor eax, eax
jmp 0x49c8b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 8