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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464821
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3b8], ebx
mov dword [ebp - 0x3b4], ebx
mov dword [ebp - 0x3b4], ebx
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0
call fcn.004024b0
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x3a8]
mov dword [ebp - 4], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41503e
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004024b0
mov ecx, dword [ebp - 0x3b0]
mov dword [ebx], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x3ac]
push eax
mov dword [ebp - 0x3b0], eax
mov dword [ebx + 4], ecx
mov dword [ebp - 0x3ac], edx
push dword [eax]
lea eax, [ebp - 0x3b8]
jmp 0x415285
lea ecx, [ebp - 0x218]
call fcn.004152d0
mov byte [ebp - 4], 1
call fcn.0042ebb0
call fcn.0042faa0
lea ecx, [ebp - 0x3c4]
mov edi, eax
call fcn.0042fb80
cmp dword [eax], 6
jae 0x415142
push 0x288
push 0
mov dword [ebp - 0x3b4], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41513c
lea eax, [ebp - 0x3b4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4150cf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x3b4]
push 0
call esi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41513c
lea eax, [ebp - 0x3b4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x415128
mov eax, esi
test esi, esi
je 0x41513c
cmp dword [eax + 0x19c], edi
je 0x4150f7
mov eax, dword [eax]
test eax, eax
jne 0x4150e7
jmp 0x415128
lea edx, [eax + 0x1d8]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415102
sub ecx, edi
je 0x415128
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415112
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1ac]
call fcn.00403560
test esi, esi
je 0x41513c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x3b8]
cmp dword [ebp - 0x154], 0
je 0x41516b
push dword [ebp - 0x3bc]
lea eax, [ebp - 0x164]
push eax
push ecx
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x3b0]
call fcn.004026e0
push 0x100
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x415235
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x415235
xor eax, eax
xor esi, esi
cmp ax, word [edi + 0xa]
jge 0x415235
nop dword [eax + eax]
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x128]
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.00430f30
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x128]
push dword [ebp - 0x3bc]
push eax
push ecx
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00412a60
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x415228
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41521e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152bf
push edx
push ecx
call fcn.00461242
add esp, 8
movsx eax, word [edi + 0xa]
inc esi
cmp esi, eax
jl 0x4151b0
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0
call fcn.004153d0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004024b0
mov ecx, dword [ebp - 0x3b0]
mov dword [ebx], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x3ac]
push eax
mov dword [ebp - 0x3b0], eax
mov dword [ebx + 4], ecx
mov dword [ebp - 0x3ac], edx
push dword [eax]
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00402030
push 0x28
push dword [ebp - 0x3b0]
call fcn.00461242
mov eax, ebx
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3