Function at 0x445b40
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
push 0x6b1290
xorps xmm0, xmm0
push 0x413160
push 0x6b128c
movlpd qword [ebp - 0x34], xmm0
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4461af
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x6b1290
push eax
push 6
push 1
push 2
call fcn.004506e0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x445bc8
cmp dword [ebp - 0x34], 0
jne 0x4461b4
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [ebp - 0x18], 1
cmp esi, 0xffffffff
jne 0x445c1c
mov eax, dword [0x6b1214]
test al, 1
jne 0x445c0c
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [ebp - 0x34], 0x2719
mov dword [ebp - 0x30], 0x6b120c
jmp 0x445c58
push 0
call edi
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00417e70
add esp, 8
test eax, eax
jne 0x445c58
lea ecx, [ebp - 0x4c]
call fcn.0041e800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x10
mov eax, 2
movups xmmword [ebp - 0x2c], xmm0
push 0x7f000001
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0042e280
add esp, 0x10
cmp eax, 0xffffffff
jne 0x445ca5
cmp dword [ebp - 0x34], 0
jne 0x4461c2
cmp esi, 0xffffffff
jne 0x445cf0
mov eax, dword [0x6b1214]
test al, 1
jne 0x445cdc
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, 0x2719
mov dword [ebp - 0x30], 0x6b120c
mov dword [ebp - 0x34], eax
jmp 0x445d81
push 0
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [0x6b1214]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
test cl, 1
jne 0x445d47
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x6b120c
test edi, edi
jne 0x445d7c
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4461d0
jmp 0x445d89
cmp edi, 0xffffffff
jne 0x445d89
test eax, eax
jne 0x4461d5
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call edi
cmp dword [ebp - 0x28], eax
jne 0x445da2
push 0x7f000001
call edi
mov dword [ebp - 0x28], eax
cmp esi, 0xffffffff
jne 0x445ded
mov eax, dword [0x6b1214]
test al, 1
jne 0x445dd9
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, 0x2719
mov dword [ebp - 0x30], 0x6b120c
mov dword [ebp - 0x34], eax
jmp 0x445ea6
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [0x6b1214]
mov edi, eax
test cl, 1
jne 0x445e38
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x6b120c
test edi, edi
jne 0x445ea1
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4461e3
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x6b1290
lea eax, [ebp - 0x34]
push eax
push 6
push 1
push 2
call fcn.004506e0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x445eb0
cmp dword [ebp - 0x34], 0
jne 0x4461e8
jmp 0x445eb0
cmp edi, 0xffffffff
jne 0x445e75
test eax, eax
jne 0x4461f6
jmp 0x445e75
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00430000
add esp, 0x10
cmp eax, 0xffffffff
jne 0x445ed3
cmp dword [ebp - 0x34], 0
jne 0x446204
cmp esi, 0xffffffff
jne 0x445f21
mov eax, dword [0x6b1214]
test al, 1
jne 0x445f0a
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
or eax, 0xffffffff
mov dword [ebp - 0x30], 0x6b120c
mov ecx, 0x2719
mov dword [ebp - 0x14], eax
jmp 0x445fbc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6b1214]
test al, 1
jne 0x445f69
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x14], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0x6b120c
jne 0x445f89
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
jmp 0x445fbf
push 0x6b1290
push 0x413160
push 0x6b128c
mov dword [ebp - 0x3c], 0
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x446212
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x6b1290
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x445fd3
test ecx, ecx
jne 0x446217
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 1
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x35], 0
push eax
push 0x8004667e
lea eax, [ebp - 0x35]
push eax
push edi
call fcn.004420d0
add esp, 0x14
test eax, eax
je 0x446006
cmp dword [ebp - 0x34], 0
jne 0x446225
mov dword [ebp - 0x18], 1
cmp edi, 0xffffffff
jne 0x446054
mov eax, dword [0x6b1214]
test al, 1
jne 0x446044
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [ebp - 0x34], 0x2719
mov dword [ebp - 0x30], 0x6b120c
jmp 0x446091
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00417e70
add esp, 8
test eax, eax
jne 0x446091
lea ecx, [ebp - 0x54]
call fcn.0041e800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 1
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x35], 0
push eax
push 0x8004667e
lea eax, [ebp - 0x35]
push eax
push dword [ebp - 0x14]
call fcn.004420d0
add esp, 0x14
test eax, eax
je 0x4460c6
cmp dword [ebp - 0x34], 0
jne 0x446233
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
cmp eax, 0xffffffff
jne 0x44610c
mov ecx, dword [0x6b1214]
test cl, 1
jne 0x446143
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
jmp 0x446140
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
push eax
push 1
push 6
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00417e70
add esp, 8
test eax, eax
jne 0x446140
lea ecx, [ebp - 0x54]
call fcn.0041e800
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov dword [ecx + 4], edi
cmp esi, 0xffffffff
je 0x446194
push 0x6b1290
push 0x413160
push 0x6b128c
mov dword [ebp - 0x34], 0
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x446241
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x6b1290
push eax
push 1
lea eax, [ebp - 0x35]
mov byte [ebp - 0x35], 0
push eax
push esi
call fcn.0042f970
add esp, 0x10
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.005bb391
mov esp, ebp
pop ebp
ret
call fcn.006027a2
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
call fcn.006027a2
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
call fcn.006027a2
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
call fcn.006027a2
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
push str.socket_select_interrupter
lea eax, [ebp - 0x34]
push eax
call fcn.00437ff0
call fcn.006027a2
int3