Function at 0x40b970
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48afce
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x4e0
mov eax, dword [0x4ad100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x45c]
xorps xmm0, xmm0
mov dword [ebp - 0x4b0], eax
movq qword [ebp - 0x45c], xmm0
mov dword [ebp - 0x454], 0
call fcn.00409c00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x4a8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x4a4]
movq qword [ebp - 0x47c], xmm0
push 0
push eax
movups xmmword [ebp - 0x49c], xmm0
mov dword [ebp - 0x4a4], 0
movups xmmword [ebp - 0x48c], xmm0
mov dword [ebp - 0x4a0], 0
call fcn.00413b70
mov ecx, dword [ebp - 0x45c]
lea eax, [ebp - 0x45c]
add esp, 8
push eax
push 0x413b90
lea eax, [ebp - 0x4a4]
push eax
call fcn.00408570
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
sub esp, 0xc
lea ecx, [ebp - 0x45c]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x490]
call fcn.00413b40
push dword [ebp - 0x4b0]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x498]
call fcn.00410c00
push 0x400
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
push eax
movq qword [ebp - 0x42c], xmm0
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
lea ecx, [ebp - 0x42c]
test esi, esi
setne dl
call fcn.00409e80
test esi, esi
je 0x40bb5d
test byte [ebp - 0x424], 1
mov dword [ebp - 0x43c], str.C:_vcpkginstalledx86_windowsinclude_boost_asioipimplhost_name.ipp
mov dword [ebp - 0x438], str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_boost::asio::ip::host_name_void_
mov dword [ebp - 0x434], 0x24
mov dword [ebp - 0x430], 0x1a
je 0x40bb36
cmp dword [ebp - 0x424], 1
jne 0x40bfe3
cmp dword [ebp - 0x42c], 0
setne al
test al, al
jne 0x40bfe3
xorps xmm0, xmm0
mov dword [ebp - 0x464], 0
movups xmmword [ebp - 0x474], xmm0
mov dword [ebp - 0x460], 0xf
mov byte [ebp - 0x474], 0
jmp 0x40bba0
xorps xmm0, xmm0
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x460], 0
movups xmmword [ebp - 0x474], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb84
sub ecx, edx
lea eax, [ebp - 0x420]
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.00403cc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x444]
xorps xmm0, xmm0
mov dword [ebp - 0x448], 0
push 0
push 0x4990e9
movq qword [ebp - 0x450], xmm0
movups xmmword [ebp - 0x444], xmm0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
call fcn.00403cc0
push ecx
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.0040e7a0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x430]
cmp ecx, 0xf
jbe 0x40bc43
mov edx, dword [ebp - 0x444]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bff4
push ecx
push edx
call fcn.0046619b
add esp, 8
mov esi, dword [ebp - 0x44c]
xorps xmm0, xmm0
movq qword [ebp - 0x42c], xmm0
mov dword [ebp - 0x424], 0
test esi, esi
je 0x40bc66
lock inc dword [esi + 4]
mov edx, dword [ebp - 0x450]
xor ecx, ecx
mov esi, dword [ebp - 0x44c]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], ecx
movq qword [ebp - 0x438], xmm0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ecx
mov eax, edx
or edi, 0xffffffff
test eax, eax
je 0x40beb1
test edx, edx
jne 0x40bcc5
test ecx, ecx
je 0x40beb1
imul eax, ecx, 0x4c
add eax, dword [edx]
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movups xmmword [ebp - 0x4f0], xmm1
mov dword [ebp - 0x4a8], eax
movq qword [ebp - 0x4e0], xmm0
movd eax, xmm1
cmp ax, 2
jne 0x40bd2e
push dword [ebp - 0x4ec]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x424]
xorps xmm0, xmm0
mov dword [ebp - 0x4c8], eax
xor eax, eax
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4b4], 0
jmp 0x40bd56
mov edx, dword [ebp - 0x4a8]
mov eax, 1
movups xmm0, xmmword [ebp - 0x4e8]
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4b4], edx
mov edx, dword [ebp - 0x4a0]
mov byte [ebp - 4], 0xa
movups xmmword [ebp - 0x4c4], xmm0
test eax, eax
jne 0x40be26
push dword [ebp - 0x4ac]
lea ecx, [ebp - 0x4cc]
call fcn.0040a640
test esi, esi
je 0x40bda3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40bda3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40bda3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x44c]
test esi, esi
je 0x40bdcb
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40bdcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40bdcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x460]
cmp ecx, 0xf
jbe 0x40be05
mov edx, dword [ebp - 0x474]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bff4
push ecx
push edx
call fcn.0046619b
add esp, 8
lea ecx, [ebp - 0x49c]
call fcn.0040e6e0
lea ecx, [ebp - 0x45c]
call fcn.00409dc0
mov eax, dword [ebp - 0x4ac]
jmp 0x40bfc5
inc ecx
mov eax, 0x6bca1af3
mov dword [ebp - 0x424], ecx
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
imul ecx
mov ecx, dword [ebp - 0x424]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4a0]
cmp ecx, eax
mov eax, edx
jne 0x40bcb1
mov ecx, esi
xor edx, edx
xor esi, esi
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x4a8], ecx
mov dword [ebp - 0x428], esi
test ecx, ecx
je 0x40bea2
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x40bea2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x4a8]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x40be9c
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4a0]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x424], ecx
jmp 0x40bcb1
test esi, esi
je 0x40bed4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40bed4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40bed4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x44c]
test esi, esi
je 0x40befc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40befc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40befc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x460]
cmp ecx, 0xf
jbe 0x40bf3a
mov edx, dword [ebp - 0x474]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bff4
push ecx
push edx
call fcn.0046619b
add esp, 8
lea ecx, [ebp - 0x49c]
call fcn.0040e6e0
lea ecx, [ebp - 0x45c]
call fcn.00409dc0
mov esi, dword [ebp - 0x4ac]
jmp 0x40bf9a
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
push 0
movups xmmword [esi], xmm0
push 0x4990e9
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00403cc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00466048
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x42c]
call fcn.004082c0
call fcn.0046b31f
int3