Function at 0x402fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c75
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x41e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXCommPack::constructor_void_]
lea ecx, [ebp - 0x74]
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 - 0x74]
mov byte [ebp - 4], 2
call edi
push 2
lea ecx, [ebp - 0x74]
call edi
mov eax, dword [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x74]
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 ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x74]
call edi
lea ecx, [ebp - 0x9c]
call esi
mov esi, dword [ebp + 0xc]
push 2
lea edx, [ebp - 0x14]
push edx
push esi
lea ecx, [ebp - 0x9c]
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 - 0x9c]
call edi
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.Common.dll_bool___cdecl_Util::Time::GetRegulatedTime_long_int__]
push esi
mov esi, dword [sym.imp.Common.dll_Ordinal_26]
lea edx, [ebp - 0x34]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
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 0x417100
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call edi
push esi
push eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 7
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
mov byte [ebp - 4], 8
push 0x4170f8
push eax
lea edx, [ebp - 0x18]
push edx
call edi
add esp, 0x38
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call esi
lea eax, [ebp - 0x44]
push eax
call fcn.00412740
push str.TencentQQDR_
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0xd
call edi
add esp, 0x10
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
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 - 0x1c]
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 0x4031d2
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x3c], ebx
jne 0x403188
mov dword [ebp - 0x28], ebx
xor eax, eax
jmp 0x4031ba
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x4031a8
xor eax, eax
jmp 0x4031ba
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call esi
mov esi, dword [sym.imp.Common.dll_public_virtual:_void___thiscall_CTXCommPack::destructor_void_]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40321e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x403233
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret