Function at 0x1000ae10
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101d59e0
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x538], eax
push ebx
push esi
push edi
mov eax, dword [0x10263fdc]
xor eax, esp
push eax
lea eax, [esp + 0x550]
mov dword fs:[0], eax
mov esi, dword [sym.imp.ParsePackage.dll_AppendLabel]
push 0x1024e0c8
push str.OpeTyp
push 0
mov edi, ecx
call esi
push str.1505724096
push str.TimStm
push 0
call esi
mov ecx, dword [edi + 0x500]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
add esp, 0x18
push 0xffffffffffffffff
call edx
push eax
lea ecx, [esp + 0x13c]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov dword [esp + 0x558], 0
mov ebx, dword [sym.imp.szutils.dll_public:_char_const____thiscall_TCommon::TString::GetAnsi_void_]
lea ecx, [esp + 0x134]
call ebx
push eax
push str.DevTyp
push 0
call esi
push str.W256H360
push str.TmpTyp
push 0
call esi
mov ecx, dword [edi + 0x500]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
add esp, 0x18
push 0xffffffffffffffff
call edx
push eax
lea ecx, [esp + 0x1cc]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x558], 1
call ebx
push eax
push str.DevFlg
push 0
call esi
xor eax, eax
push 0x63
push eax
mov dword [esp + 0x40d], eax
mov dword [esp + 0x411], eax
mov dword [esp + 0x415], eax
mov dword [esp + 0x419], eax
mov byte [esp + 0x41d], al
mov byte [esp + 0x3fc], al
mov dword [esp + 0x3fd], eax
mov dword [esp + 0x401], eax
mov dword [esp + 0x405], eax
mov word [esp + 0x409], ax
mov byte [esp + 0x40b], al
mov byte [esp + 0x420], al
lea eax, [esp + 0x421]
push eax
mov byte [esp + 0x410], 0
call sub.MSVCR100.dll_memset
lea ecx, [esp + 0x400]
push ecx
lea edx, [esp + 0x414]
push edx
call fcn.1001f3d0
add esp, 0x20
lea eax, [esp + 0x254]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000afd9
cmp word [esp + 0x254], 2
jne 0x1000afd3
push 0x64
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jns 0x1000afd3
push str.unknow_host
lea edx, [esp + 0x410]
push 0x64
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x3e8]
push eax
push str.HosIP
push 0
call esi
lea ecx, [esp + 0x404]
push ecx
push str.HosMAC
push 0
call esi
lea edx, [esp + 0x424]
push edx
push str.HosNam
push 0
call esi
push 0x1024e124
push str.OptTim
push 0
call esi
push 0x1024e130
push str.VrfMod
push 0
call esi
push str.ffffffffffffffffffffffffffffffff
push str.Token
push 0
call esi
add esp, 0x48
push 0x1024cb20
push str.UsrNam
push 0
call esi
push 0x1024e130
push str.FpCnt
push 0
call esi
push 0x1024e178
push str.FpEncTyp
push 0
call esi
mov ecx, dword [edi + 0x500]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
add esp, 0x24
push 0xffffffffffffffff
call edx
push eax
lea ecx, [esp + 0xac]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x558], 2
call ebx
push eax
push str.DevSn
push 0
call esi
lea ecx, [edi + 0x508]
add esp, 0xc
mov dword [esp + 0x10], ecx
call dword [sym.imp.DuiLib_u.dll_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const]
cdq
sub eax, edx
sar eax, 1
push eax
push 0x1024e190
lea edx, [esp + 0x4e4]
call fcn.1000b450
add esp, 8
lea ecx, [esp + 0x14]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
push 0x1024cb20
lea ecx, [esp + 0x18]
mov byte [esp + 0x55c], 3
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_char_const__]
mov edi, dword [reloc.szutils.dll___YTString_TCommon__QAEABV01_PBD_Z]
push str.R2_0_
lea ecx, [esp + 0x18]
call edi
lea eax, [esp + 0x4dc]
push eax
lea ecx, [esp + 0x18]
call edi
push 0x1024e19c
lea ecx, [esp + 0x18]
call edi
mov ecx, dword [esp + 0x10]
call dword [sym.imp.DuiLib_u.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
push 0x1024e19c
lea ecx, [esp + 0x18]
call edi
lea ecx, [esp + 0x14]
call ebx
push eax
push str.FpDat
push 0
call esi
mov edi, dword [sym.imp.ParsePackage.dll_GetPackLen]
call edi
push eax
push 0x1024e190
lea edx, [esp + 0x488]
call fcn.1000b450
lea ecx, [esp + 0x488]
push ecx
push str.FpConLen
push 0
call esi
call edi
mov edi, eax
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x1000b1b1
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
push esi
call dword [sym.imp.ParsePackage.dll_PackData]
add esp, 0x10
test eax, eax
jne 0x1000b1a7
mov ecx, dword [esp + 0x10]
push esi
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_char_const__]
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
call dword [sym.imp.ParsePackage.dll_FreePackMemory]
mov byte [esp + 0x558], 2
mov esi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
lea ecx, [esp + 0x14]
call esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x558], 1
call esi
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x558], 0
call esi
lea ecx, [esp + 0x134]
mov dword [esp + 0x558], 0xffffffff
call esi
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret