Function at 0x402d15
Capabilities:
Write file on windows

Disassembly:
push 0x84
mov eax, 0x4106ae
call fcn.0040f874
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXCommPack::constructor_void_]
lea ecx, [ebp - 0x68]
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.Common.dll_public:_int___thiscall_CTXCommPack::AddByte_unsigned_char_]
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call edi
push 2
lea ecx, [ebp - 0x68]
call edi
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x68]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXCommPack::AddWord_unsigned_short_int__int_]
mov edi, dword [sym.imp.Common.dll_public:_int___thiscall_CTXCommPack::GetBufferOut_class_CTXBuffer__]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x68]
call edi
lea ecx, [ebp - 0x90]
call esi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXCommPack::AddTLV_unsigned_long_int__class_CTXBuffer_const___enum_TXCommPackDataType_]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x90]
call edi
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], ebx
call dword [sym.imp.Common.dll_bool___cdecl_Util::Time::GetRegulatedTime_long_int__]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.Common.dll_Ordinal_26]
lea eax, [ebp - 0x28]
push eax
call esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 5
call esi
mov esi, eax
mov edi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push 0x4140e0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call edi
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
push 0x4140d8
push eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 0x38
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040f459
mov dword [esp], str.TencentQQDR_
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xd
call edi
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xf
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402eb9
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], ebx
call fcn.00401e14
push eax
lea ecx, [ebp - 0x10]
call fcn.00401df5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call esi
mov esi, dword [sym.imp.Common.dll_public_virtual:_void___thiscall_CTXCommPack::destructor_void_]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
call esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x402f03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402f16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call esi
call fcn.0040f913
ret