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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba05
mov eax, dword fs:[0]
push eax
sub esp, 0x948
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 - 0x93c], ecx
mov eax, dword [ebp - 0x93c]
mov byte [eax + 0x4c], 0
push 0x4c40b6
mov ecx, dword [ebp - 0x93c]
add ecx, 0x34
call fcn.00409200
push 0x64
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.00456880
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call sym.Install_silent.exe_public:_static_bool___cdecl_CNsEncrypt::GetKey_unsigned_char__const__unsigned_int__unsigned_char_const__
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call sym.Install_silent.exe_public:_static_bool___cdecl_CNsEncrypt::HfDecodeStr_unsigned_char_const___char_const___unsigned_char__
add esp, 0xc
mov byte [ebp - 0x941], al
movzx eax, byte [ebp - 0x941]
test eax, eax
je 0x49ad6d
mov ecx, 1
imul edx, ecx, 0xf
movsx eax, byte [ebp + edx - 0x94]
test eax, eax
je 0x49ad74
xor al, al
jmp 0x49b22b
lea ecx, [ebp - 0x940]
call fcn.004210e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.key_stype_d
lea eax, [ebp - 0x940]
push eax
call fcn.00421100
add esp, 0x10
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::constructor_void_
mov byte [ebp - 4], 1
push 0x3e8
push 3
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::SetRetry_int__int_
push 0xbb8
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::SetTimeout_unsigned_long_int_
push 0x50
push 0x1f4
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x940]
call fcn.00406e60
push eax
lea ecx, [ebp - 0x940]
call fcn.00406e80
push eax
mov ecx, dword [ebp - 0x93c]
add ecx, 4
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_int___thiscall_CNsNet::Post_wchar_t_const___void___int__char___int__int_
mov dword [ebp - 0x954], eax
cmp dword [ebp - 0x954], 0
jne 0x49ae55
mov byte [ebp - 0x942], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x942]
jmp 0x49b22b
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x350]
push eax
call fcn.00460dc0
add esp, 8
test eax, eax
je 0x49aea2
mov byte [ebp - 0x943], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x943]
jmp 0x49b22b
mov ecx, dword [ebp - 0x93c]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x950]
call fcn.004a2250
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x93c]
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 0x49aee3
mov ecx, dword [ebp - 0x93c]
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 0x4c9110
mov ecx, dword [ebp - 0x93c]
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 - 0x94c], eax
cmp dword [ebp - 0x94c], 0
jne 0x49af4d
mov byte [ebp - 0x944], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x950]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x944]
jmp 0x49b22b
mov edx, dword [ebp - 0x94c]
push edx
call fcn.0045febd
add esp, 4
push 0
push 0
lea eax, [ebp - 0x760]
push eax
mov ecx, dword [ebp - 0x93c]
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 ecx, [ebp - 0x15c]
push ecx
call fcn.00456880
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x94]
push eax
movzx ecx, word [ebp - 0x754]
push ecx
movzx edx, word [ebp - 0x756]
push edx
movzx eax, word [ebp - 0x758]
push eax
movzx ecx, word [ebp - 0x75a]
push ecx
movzx edx, word [ebp - 0x75e]
push edx
movzx eax, word [ebp - 0x760]
push eax
push str.NS_04d_02d_02d_02d_02d_02d_s_s
lea ecx, [ebp - 0x15c]
push ecx
call fcn.0040cd50
add esp, 0x28
lea ecx, [ebp - 0x778]
call fcn.004093f0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x778]
push edx
push 0x3f
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x30]
push ecx
call sym.Install_silent.exe_public:_static_bool___cdecl_CNsEncrypt::HfEncodeStr_unsigned_char_const___unsigned_char_const___unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0x10
lea ecx, [ebp - 0x778]
call fcn.00409140
cmp eax, 0x80
je 0x49b06e
mov byte [ebp - 0x945], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x778]
call fcn.00409220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x950]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x945]
jmp 0x49b22b
push 0x4c9138
mov ecx, dword [ebp - 0x93c]
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 - 0x94c], eax
cmp dword [ebp - 0x94c], 0
jne 0x49b0e7
mov byte [ebp - 0x946], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x778]
call fcn.00409220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x950]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x946]
jmp 0x49b22b
mov edx, dword [ebp - 0x94c]
push edx
lea ecx, [ebp - 0x778]
call fcn.00409140
push eax
push 1
lea ecx, [ebp - 0x778]
call fcn.00409160
push eax
call fcn.0045fdef
add esp, 0x10
mov eax, dword [ebp - 0x94c]
push eax
push 0x400
push 1
lea ecx, [ebp - 0x750]
push ecx
call fcn.0045fdef
add esp, 0x10
mov edx, dword [ebp - 0x94c]
push edx
call fcn.0045febd
add esp, 4
mov ecx, dword [ebp - 0x93c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x93c]
call sym.Install_silent.exe_public:_bool___thiscall_CNsCode::WriteCodeEx_wchar_t_const__
movzx eax, al
test eax, eax
jne 0x49b1ab
mov byte [ebp - 0x947], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x778]
call fcn.00409220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x950]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x947]
jmp 0x49b22b
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x94]
cmp eax, 0x45
jne 0x49b1df
mov ecx, dword [ebp - 0x93c]
mov byte [ecx + 0x4c], 1
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0x93c]
add ecx, 0x34
call fcn.00409200
mov byte [ebp - 0x948], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x778]
call fcn.00409220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x950]
call fcn.004a2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x938]
call sym.Install_silent.exe_public:_void___thiscall_CNsNet::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.00406dc0
mov al, byte [ebp - 0x948]
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