Function at 0x40ce60
Capabilities:
Get local ipv4 addresses
Initialize winsock library

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 0x48baf3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x4ac068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], esi
xor eax, eax
mov dword [ebp - 0x2e8], esi
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40cf24
push eax
push ecx
mov edx, str.WSAStartup_failed:
mov ecx, 0x4ae898
call fcn.004411e0
add esp, 4
mov ecx, eax
call fcn.00438ee0
push eax
call fcn.00441490
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0
push 0x4a1ab0
call fcn.00442ae0
jmp 0x40d08b
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0
push eax
push 0
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov esi, dword [ebp - 0x2dc]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
movq qword [ebp - 0x44], xmm0
xor edi, edi
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
test esi, esi
je 0x40cfe0
cmp esi, 0x7fffffff
ja 0x40d472
cmp esi, 0x1000
jb 0x40cfb2
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x40d477
push eax
call fcn.0046469e
add esp, 4
test eax, eax
je 0x40d47c
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [ebp - 0x2e8], edi
mov dword [edi - 4], eax
jmp 0x40cfc3
push esi
call fcn.0046469e
add esp, 4
mov dword [ebp - 0x2e8], eax
mov edi, eax
push esi
lea ecx, [edi + esi]
mov dword [ebp - 0x44], edi
push 0
push edi
mov dword [ebp - 0x3c], ecx
call fcn.00466440
mov esi, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x40], esi
jmp 0x40cfe2
xor esi, esi
lea eax, [ebp - 0x2dc]
mov dword [ebp - 4], 0
push eax
push edi
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x40d0ab
push eax
push ecx
mov edx, str.GetAdaptersAddresses_failed:
mov ecx, 0x4ae898
call fcn.004411e0
add esp, 4
mov ecx, eax
call fcn.00438ee0
push eax
call fcn.00441490
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x2ec]
xorps xmm0, xmm0
push 0
push 0x4a1ab0
mov ecx, eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00442ae0
test edi, edi
je 0x40d085
sub esi, edi
cmp esi, 0x1000
jb 0x40d07b
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x40d47c
mov edi, ecx
push esi
push edi
call fcn.00464974
add esp, 8
mov esi, dword [ebp - 0x2ec]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00464482
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x40d1ed
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x40d1e2
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x2c]
push 0x16
push ecx
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push 0x50
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.00466440
add esp, 0xc
lea ecx, [ebp - 0x148]
call fcn.00438890
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d130
sub eax, edx
lea ecx, [ebp - 0x2c]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x148]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0043d870
or dword [ebp - 0x2e0], 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf8]
mov eax, dword [ebp - 0x34]
push ecx
cmp eax, dword [ebp - 0x30]
je 0x40d17b
mov ecx, eax
call fcn.0043a930
add dword [ebp - 0x34], 0x18
jmp 0x40d184
push eax
lea ecx, [ebp - 0x38]
call fcn.00446e10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe4]
cmp ecx, 8
jb 0x40d1c8
mov edx, dword [ebp - 0xf8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d1be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d47c
push ecx
push edx
call fcn.00464974
add esp, 8
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.004387d0
mov esi, dword [esi + 8]
test esi, esi
jne 0x40d0f0
mov edi, dword [edi + 8]
test edi, edi
jne 0x40d0e0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x98
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.00466440
add esp, 0xc
mov dword [ebp - 0xe0], 0x4a2ee8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x2e0]
or eax, 8
mov dword [ebp - 0x90], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0xdc]
push 0
push eax
mov dword [ebp - 0x94], 0x48
call fcn.00440090
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.0043fdc0
mov dword [ebp - 0xdc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 4
mov byte [ebp - 4], 7
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x34]
mov ecx, edi
mov esi, dword [ebp - 0x38]
sub ecx, esi
imul ecx
mov dword [ebp - 0x2e0], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40d3a6
xor ecx, ecx
mov dword [ebp - 0x2e4], ecx
nop dword [eax + eax]
sub edi, esi
mov eax, 0x2aaaaaab
imul edi
add esi, ecx
lea ecx, [ebp - 0xe0]
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
mov edx, 0x4a1b20
cmp dword [ebp - 0x2e0], eax
je 0x40d341
call fcn.00441530
cmp dword [esi + 0x14], 8
mov ecx, eax
mov edx, esi
jb 0x40d33a
mov edx, dword [esi]
mov edi, 0x4a1b18
jmp 0x40d357
call fcn.00441530
cmp dword [esi + 0x14], 8
mov ecx, eax
mov edx, esi
jb 0x40d352
mov edx, dword [esi]
mov edi, 0x4a1b24
mov eax, dword [esi + 0x10]
push eax
call fcn.00446230
add esp, 4
mov edx, edi
mov ecx, eax
call fcn.004411e0
mov edi, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x38]
mov ecx, edi
add dword [ebp - 0x2e4], 0x18
sub ecx, esi
inc dword [ebp - 0x2e0]
imul ecx
mov ecx, dword [ebp - 0x2e4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2e0], eax
jb 0x40d300
mov esi, dword [ebp - 0x2ec]
lea ecx, [ebp - 0xdc]
push esi
call fcn.0043d750
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.00437f40
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.004515ec
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.0043db90
mov edx, dword [ebp - 0x2e8]
test edx, edx
je 0x40d08b
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40d463
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d47c
push ecx
push edx
call fcn.00464974
add esp, 8
jmp 0x40d08b
call fcn.00445520
call fcn.00401510
call fcn.0046d7bc
int3