Function at 0x1007a90
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.0100b490
mov eax, dword [0x100dd30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x2c3c], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c40], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c44], edi
mov dword [ebp - 0x2c34], eax
mov dword [ebp - 0x2c2c], eax
mov dword [ebp - 0x2c38], eax
mov dword [ebp - 0x2c68], eax
mov dword [ebp - 0x2c64], eax
cmp esi, eax
je 0x1007cb1
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1002e00
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1007cb1
push dword [0x100dd24]
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1007cb1
lea eax, [ebp - 0x2c2c]
push eax
push esi
call fcn.010072ce
test eax, eax
jl 0x1007c94
cmp dword [ebp - 0x2c2c], 0
jne 0x1007bb1
mov edi, 0x1000
push edi
lea eax, [ebp - 0x2908]
push eax
push 0xd3
push dword [0x1020644]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1007b66
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007c94
push esi
lea eax, [ebp - 0x2908]
push eax
push 0xfff
push edi
mov esi, 0x10206a0
push esi
call sub.msvcrt.dll__snwprintf_s
mov eax, esi
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007b87
sub eax, edx
sar eax, 1
push eax
push esi
push dword [0x1020634]
call fcn.01005a95
mov dword [ebp - 0x2c34], 0x80004005
jmp 0x1007c78
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007bb6
sub eax, edx
sar eax, 1
lea edi, [eax + 3]
lea eax, [edi + edi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x2c30], eax
test eax, eax
jne 0x1007be6
mov eax, 0x8007000e
jmp 0x1007c94
mov ebx, 0x1002df8
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push ebx
test eax, eax
jne 0x1007c16
push edi
push dword [ebp - 0x2c30]
call sub.msvcrt.dll_wcscpy_s
push esi
push edi
push dword [ebp - 0x2c30]
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
jmp 0x1007c35
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp esi, eax
jne 0x1007ca5
push esi
push edi
push dword [ebp - 0x2c30]
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push 0x101fe0c
push dword [ebp - 0x2c30]
call fcn.01006977
mov dword [ebp - 0x2c34], eax
test eax, eax
jl 0x1007c5c
cmp dword [0x101fe0c], 0
je 0x1007d9a
xor ebx, ebx
mov eax, dword [ebp - 0x2c30]
cmp eax, ebx
je 0x1007c78
cmp eax, dword [0x100dd24]
je 0x1007c78
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x2c64], 0
je 0x1007c8e
push dword [ebp - 0x2c64]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x2c34]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b427
leave
ret 0xc
mov dword [ebp - 0x2c34], 0x80070057
jmp 0x1007c5c
test edi, edi
je 0x1007c78
lea eax, [ebp - 0x2a98]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1007d8f
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x1007d6d
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cf3
sub eax, edx
lea esi, [eax + 3]
lea eax, [esi + esi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0x2c30], edi
test edi, edi
jne 0x1007d21
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1007bdc
push 0x1002df8
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.01005e7f
mov ebx, eax
test ebx, ebx
jne 0x1007d4c
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1007d16
push ebx
push esi
push edi
call sub.msvcrt.dll_wcscat_s
push ebx
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x2c38], 0
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1007d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp - 0x2c34], eax
mov dword [0x101dda4], eax
call fcn.0100611a
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1007c78
mov eax, dword [0x100dd24]
mov dword [ebp - 0x2c30], eax
xor eax, eax
push 0x800
mov word [ebp - 0x908], ax
xor esi, esi
lea eax, [ebp - 0x906]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c84]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c28]
push eax
push 0x202
mov dword [ebp - 0x2c2c], esi
mov dword [ebp - 0x2c88], 4
mov dword [ebp - 0x2c84], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1007b5b
mov ebx, dword [ebp - 0x2c30]
lea eax, [ebp - 0x2c2c]
push eax
lea eax, [ebp - 0x2c88]
push eax
push esi
add ebx, 4
push ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov edi, 0x401
mov esi, 0x101fe20
test eax, eax
jne 0x1007e84
push 3
push eax
push eax
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x2c2c]
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
push dword [ebp - 0x2c2c]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
lea eax, [ebp - 0x908]
push eax
push edi
push esi
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0x2c2c]
add esp, 0xc
cmp dword [eax + 4], 0x17
jne 0x1007e84
push edi
push esi
mov byte [0x101fe15], 1
call fcn.01005749
push eax
push edi
push esi
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp word [0x101fe20], 0
jne 0x1007e9f
push ebx
push edi
push esi
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007ea4
sub eax, edx
sar eax, 1
lea edi, [eax + 9]
lea eax, [edi + edi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
xor ebx, ebx
pop ecx
mov dword [ebp - 0x2c64], eax
cmp eax, ebx
jne 0x1007edb
mov dword [ebp - 0x2c34], 0x8007000e
jmp 0x1007c5e
push esi
push 0x1003050
lea ecx, [edi - 1]
push ecx
push edi
push eax
call sub.msvcrt.dll__snwprintf_s
mov edi, dword [ebp - 0x2c44]
mov eax, dword [ebp - 0x2c40]
add esp, 0x14
mov dword [ebp - 0x2c60], eax
mov dword [ebp - 0x2c58], 3
cmp edi, ebx
jne 0x1007f17
mov dword [ebp - 0x2c4c], ebx
jmp 0x1007f2e
mov esi, 0x1002d98
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1007f36
mov dword [ebp - 0x2c4c], edi
mov dword [ebp - 0x2c48], ebx
jmp 0x1007f77
push edi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [ebp - 0x2c4c], eax
mov dword [ebp - 0x2c38], eax
cmp eax, ebx
jne 0x1007f5a
mov dword [ebp - 0x2c34], 0x8007000e
jmp 0x1007fd5
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
push esi
push eax
call edi
push esi
push ebx
mov dword [ebp - 0x2c48], eax
call edi
add esp, 0x10
mov dword [ebp - 0x2c4c], eax
lea eax, [ebp - 0x2c3c]
push eax
lea eax, [ebp - 0x2c68]
push eax
push 2
push ebx
call sub.NETAPI32.dll_NetUseAdd
cmp eax, ebx
je 0x1007fd5
push ebx
push ebx
lea ecx, [ebp - 0x2c2c]
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x2c2c]
push 0x1003044
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
push dword [ebp - 0x2c2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c34], 0x80004005
cmp dword [ebp - 0x2c38], ebx
je 0x1007c5e
push dword [ebp - 0x2c38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1007c5e