Function at 0x405c30
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42727d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
push 0x80
movlpd qword [ebp - 0x30], xmm0
call fcn.004174bf
mov cl, byte [ebp - 0x34]
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], cl
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 1
push 0x10
mov dword [ebp - 4], 0
call fcn.0040e22c
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
add esp, 8
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
movups xmmword [eax], xmm0
lea ecx, [eax + 4]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [ecx], 1
mov dword [ebp - 0x50], ecx
lea ecx, [eax + 8]
mov dword [ecx], 1
mov dword [eax], vtable.std::_Ref_count_resource_char___class__private:_void___thiscall_VciToolServer::Get_local_broadcast_address_void_::_2::_lambda_1__.0
mov dword [ebp - 0x3c], ecx
mov dword [eax + 0xc], esi
push 0x80
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x405f69
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x405f69
mov edx, dword [edi + 0x20]
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, edx
je 0x405d1d
push ecx
call fcn.0040a5a0
mov eax, dword [edi + 0x1c]
add esp, 4
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], 0
cmp dword [eax], 0
je 0x405f69
xor ecx, ecx
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
je 0x405f4b
push str.169.254.
push esi
call fcn.0040f800
add esp, 8
test eax, eax
jne 0x405f4b
mov ecx, esi
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d70
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
setae byte [ebp - 0x35]
cmp edx, 1
jb 0x405dd4
or esi, 0xffffffff
lea eax, [edx - 1]
cmp eax, esi
cmovb esi, eax
add esi, ecx
nop dword [eax]
cmp byte [esi], 0x2e
jne 0x405dc9
movzx eax, byte [esi]
cmp al, 0x2e
jne 0x405dc0
xor eax, eax
jmp 0x405dc5
sbb eax, eax
or eax, 1
test eax, eax
je 0x405dd0
cmp esi, ecx
je 0x405dd4
dec esi
jmp 0x405db0
sub esi, ecx
jmp 0x405dd7
or esi, 0xffffffff
cmp esi, edx
ja 0x405def
cmp byte [ebp - 0x35], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovne eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x405e2a
sub esi, edx
sub edi, edx
cmp esi, edi
ja 0x405e1c
cmp byte [ebp - 0x35], 0
lea edi, [ebp - 0x28]
push esi
cmovne edi, dword [ebp - 0x28]
lea eax, [esi + edx]
add edi, edx
mov dword [ebp - 0x18], eax
push 0
push edi
call fcn.00410190
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x405e2a
push ecx
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push esi
call fcn.0040a700
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov eax, esi
sub eax, edx
cmp eax, 4
jb 0x405e58
cmp esi, 0x10
lea eax, [edx + 4]
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
mov eax, dword [str..255]
mov dword [ecx + edx], eax
mov byte [ecx + edx + 4], 0
jmp 0x405e69
push 4
push str..255
push dword [ebp - 0x3c]
push 4
call fcn.00402740
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], ecx
mov esi, dword [edx]
mov edi, dword [edx + 4]
cmp esi, edi
je 0x405ebe
cmp dword [ebp - 0x14], 0x10
setae dl
mov byte [ebp - 0x35], dl
test dl, dl
lea eax, [ebp - 0x28]
cmovne eax, ecx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x405e97
mov ecx, dword [esi]
push dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
push eax
call fcn.0040ace0
add esp, 8
test al, al
jne 0x405eb7
mov ecx, dword [ebp - 0x44]
add esi, 0x18
mov dl, byte [ebp - 0x35]
cmp esi, edi
jne 0x405e85
mov edx, dword [ebp - 0x40]
cmp esi, edi
jne 0x405f15
cmp edi, dword [edx + 8]
je 0x405f04
xorps xmm0, xmm0
mov eax, 0xf
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add dword [edx + 4], 0x18
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
jmp 0x405f1b
lea eax, [ebp - 0x28]
mov ecx, edx
push eax
push edi
call fcn.0040aae0
mov ecx, dword [ebp - 0x28]
jmp 0x405f18
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x405f4b
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f41
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fac
push edx
push ecx
call fcn.0040e4b2
add esp, 8
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
lea ecx, [eax*4]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
cmp dword [eax + ecx], 0
jne 0x405d32
mov ecx, dword [ebp - 0x50]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx], eax
jne 0x405f91
mov esi, dword [ebp - 0x54]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov eax, dword [ebp - 0x3c]
lock xadd dword [eax], edi
dec edi
jne 0x405f91
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
ret
call fcn.00412470
int3