Function at 0x10004a20
Capabilities:
Get hostname
Print debug messages

Disassembly:
sub esp, 0xc40
mov eax, dword [0x10027400]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.IPInterface::initialize______n
mov ebp, ecx
call esi
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x10004a67
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.1000e6bf
add esp, 0xc40
ret
push 0x401
lea eax, [esp + 0x848]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
lea ecx, [esp + 0x40]
je 0x10004ab4
push str.GetHostName_Failed_n
push ecx
call fcn.1000e4d5
add esp, 8
lea edx, [esp + 0x40]
push edx
call esi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.1000e6bf
add esp, 0xc40
ret
lea eax, [esp + 0x844]
push eax
push str.Name_of_local_host:__s_n
push ecx
call fcn.1000e4d5
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call esi
mov ecx, ebp
call fcn.100046d0
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x10028714]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x11
jne 0x10004b28
push ebx
call fcn.10003720
mov dword [0x10028714], eax
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
lea ecx, [esp + 0x854]
push ecx
call eax
mov edi, eax
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp edi, 0x2afc
jne 0x10004b64
push str.getaddrinfo_failed_WSANO_DATA__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffe2
jmp 0x10004ea8
cmp edi, ebx
jne 0x10004e7a
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004b7e
mov eax, dword [eax + 0x1c]
add esi, 1
cmp eax, ebx
jne 0x10004b74
lea edi, [esi*4 + 4]
push edi
call fcn.1000ee85
add esp, 4
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x10004ba5
push str.malloc_failed____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10004ea3
push edi
push ebx
push eax
call fcn.1000e570
mov edx, dword [ebp + 0x14]
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x18], ebx
je 0x10004e15
lea eax, [ebp + 0x20]
mov dword [esp + 0x14], eax
lea esp, [esp]
push 0x401
lea ecx, [esp + 0x448]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call fcn.1000e570
mov eax, dword [0x10028718]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
add esp, 0xc
test eax, eax
jne 0x10004c05
push 1
call fcn.10003720
mov dword [0x10028718], eax
push 2
push 0
push 0
push 0x401
lea edx, [esp + 0x454]
push edx
push edi
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test edi, edi
jne 0x10004c56
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x4c]
push str.Local_interface_address_found:__s__Family:__d__n
push edx
call fcn.1000e4d5
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
call edi
jmp 0x10004c7a
push edi
lea ecx, [esp + 0x48]
push str.getnameinfo___failed._Error:__d_n
push ecx
call fcn.1000e4d5
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 4], 0x17
jne 0x10004d25
push 5
lea eax, [esp + 0x448]
push str.fe80:
push eax
call fcn.1001ac75
add esp, 0xc
test eax, eax
jne 0x10004e08
xor edi, edi
cmp dword [ebp + 0x1aac], edi
jle 0x10004d0f
lea ebx, [ebp + 0xe4]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004cb8
sub eax, edx
push eax
lea ecx, [esp + 0x448]
push ecx
push ebx
call fcn.1001ac75
add esp, 0xc
test eax, eax
je 0x10004cfa
add edi, 1
add ebx, 0x84
cmp edi, dword [ebp + 0x1aac]
jl 0x10004cb3
push str.Unable_to_find_scope_id...skipping_the_address____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10004e08
imul edi, edi, 0x84
mov edi, dword [edi + ebp + 0x164]
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x10004d1f
push str.Unable_to_find_scope_id...skipping_the_address____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10004e08
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_socket]
mov edx, dword [ebp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [edx + ebx*4 + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ebx*4 + 4]
cmp eax, 0xffffffff
je 0x10004e50
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push ecx
push eax
lea edx, [esp + 0x54]
push str.Created_socket...Id:__d__family:__d__socket_type:__d__protocol:__d_n
push edx
call fcn.1000e4d5
add esp, 0x18
lea eax, [esp + 0x44]
push eax
call edi
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 1
mov eax, dword [edx + ebx*4 + 4]
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10004e5e
cmp dword [esi + 4], 0x17
jne 0x10004dbe
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004dbe
mov ecx, dword [esi + 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ecx + ebx*4 + 4]
push eax
push edx
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x10004dfc
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x4c]
push str.Bind_Error_Code_:__d.__res0__ai_addrlen_d_n
push ecx
call fcn.1000e4d5
add esp, 0x10
lea edx, [esp + 0x44]
push edx
call edi
add ebx, 1
add dword [esp + 0x14], 4
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
xor ebx, ebx
test esi, esi
jne 0x10004bd0
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x18], 1
mov eax, dword [0x1002871c]
cmp eax, ebx
jne 0x10004e3e
push 2
call fcn.10003720
mov dword [0x1002871c], eax
push esi
call eax
push str.___IPInterface::initialize___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x10004ea8
push str.socket_creation_falied____n
call edi
mov eax, 0xffffffe2
jmp 0x10004ea8
push str.ioctlsocket_creation_falied____n
call edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4 + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0xffffffe1
jmp 0x10004ea8
push edi
lea ecx, [esp + 0x84c]
push ecx
lea edx, [esp + 0x4c]
push str.getaddrinfo__s__NULL__...__failed__rc___d_n
push edx
call fcn.1000e4d5
add esp, 0x10
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp + 0x18], ebx
mov eax, 0xffffffe0
mov ecx, dword [esp + 0xc4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000e6bf
add esp, 0xc40
ret