Function at 0x10010470
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101d56cc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x10263fdc]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x14], eax
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x26c], 0
mov dword [esp + 0x26d], eax
mov dword [esp + 0x271], eax
mov dword [esp + 0x275], eax
mov dword [esp + 0x279], eax
mov dword [esp + 0x27d], eax
mov dword [esp + 0x281], eax
mov dword [esp + 0x285], eax
mov dword [esp + 0x289], eax
call dword [sym.imp.MSVCR100.dll__time64]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 0x1024e190
lea edx, [esp + 0x278]
push 0x21
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov esi, dword [sym.imp.ParsePackage.dll_AppendLabel]
push 0x1024ed74
push str.OpeTyp
push 0
call esi
lea eax, [esp + 0x28c]
push eax
push str.TimStm
push 0
call esi
push edi
push str.DevTyp
push 0
call esi
push str.W256H360
push str.TmpTyp
push 0
call esi
mov ecx, dword [esp + 0x5c]
add esp, 0x48
push ecx
push str.DevFlg
push 0
call esi
xor eax, eax
push 0x63
push eax
lea edx, [esp + 0x2a1]
push edx
mov byte [esp + 0x26c], 0
mov dword [esp + 0x26d], eax
mov dword [esp + 0x271], eax
mov dword [esp + 0x275], eax
mov dword [esp + 0x279], eax
mov byte [esp + 0x27d], al
mov byte [esp + 0x25c], al
mov dword [esp + 0x25d], eax
mov dword [esp + 0x261], eax
mov dword [esp + 0x265], eax
mov word [esp + 0x269], ax
mov byte [esp + 0x26b], al
mov byte [esp + 0x2a4], al
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x270]
push ecx
call fcn.1001f3d0
add esp, 0x20
lea edx, [esp + 0xb4]
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10010652
cmp word [esp + 0xb4], 2
jne 0x1001064c
push 0x64
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jns 0x1001064c
push str.unknow_host
lea ecx, [esp + 0x290]
push 0x64
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea edx, [esp + 0x244]
push edx
push str.HosIP
push 0
call esi
lea eax, [esp + 0x260]
push eax
push str.HosMAC
push 0
call esi
lea ecx, [esp + 0x2a4]
push ecx
push str.HosNam
push 0
call esi
push 0x1024ed78
push str.OptTim
push 0
call esi
push str.ffffffffffffffffffffffffffffffff
push str.Token
push 0
call esi
add esp, 0x3c
lea ecx, [ebx + 0x588]
call dword [sym.imp.szutils.dll_public:_char_const____thiscall_TCommon::TString::GetAnsi_void_]
push eax
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 edx, dword [esp + 0x3c]
push edx
push str.DevSn
push 0
call esi
add ebx, 0x4fc
add esp, 0x30
mov ecx, ebx
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TString::GetLength_void_const]
cdq
sub eax, edx
sar eax, 1
push eax
push 0x1024e190
lea edx, [esp + 0x364]
call fcn.1000b450
add esp, 8
lea ecx, [esp + 0x24]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
push 0x1024cb20
lea ecx, [esp + 0x28]
mov dword [esp + 0x3dc], 0
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_1_
lea ecx, [esp + 0x28]
call edi
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x28]
call edi
push 0x1024e19c
lea ecx, [esp + 0x28]
call edi
push ebx
lea ecx, [esp + 0x28]
call dword [0x101d9adc]
push 0x1024e19c
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x24]
call dword [sym.imp.szutils.dll_public:_char_const____thiscall_TCommon::TString::GetAnsi_void_]
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 + 0x308]
call fcn.1000b450
lea ecx, [esp + 0x308]
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 0x100107f0
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 0x100107e6
push esi
mov ecx, ebx
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_char_const__]
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
call dword [sym.imp.ParsePackage.dll_FreePackMemory]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3d8], 0xffffffff
call dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret 8