Function at 0x421d60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x144
mov eax, dword [0x461194]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [edi]
push esi
push 0xff
xor ebx, ebx
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x58], 0
call fcn.00433f80
mov dword [esp + 0x20], 0x10
mov esi, dword [ebp + 0x2bc]
add esp, 0xc
cmp esi, ebx
mov byte [esp + 0xe], bl
mov dword [esp + 0x10], ebx
mov byte [esp + 0xf], 1
je 0x421de5
lea ecx, [esp + 0x1c]
push ecx
push esi
push 2
call fcn.0042c4a0
add esp, 0xc
test eax, eax
jle 0x421e25
push ebx
push esi
lea edx, [esp + 0x24]
push edx
push 2
call fcn.0041f440
add esp, 0x10
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebx
jne 0x421ef4
mov ecx, dword [edi + 0xd4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x421ee0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042c280
push eax
push str.getsockname___failed:__s
push ebp
call fcn.0041d0d0
add esp, 0x14
jmp 0x4220cb
push 0x100
lea eax, [esp + 0x50]
push eax
push esi
push 2
call fcn.0042c4d0
add esp, 0x10
test eax, eax
je 0x421e66
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
push 2
call fcn.0042c4a0
add esp, 0xc
test eax, eax
jle 0x421de5
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x421dcd
mov eax, esi
lea edx, [eax + 1]
jmp 0x421e70
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421e70
sub eax, edx
cmp eax, 1
jbe 0x421de5
lea edx, [esp + 0x18]
push edx
push ebx
push esi
push edi
mov dword [esp + 0x28], ebx
call fcn.00413e40
add esp, 0x10
cmp eax, 1
jne 0x421eab
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0041f970
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x421ecc
mov ecx, dword [eax]
push eax
push ebp
mov dword [esp + 0x18], ecx
call fcn.00414030
add esp, 8
mov byte [esp + 0xf], bl
jmp 0x421ddb
push esi
push str.Failed_to_resolve_host_name__s_n
push ebp
call fcn.0041d040
add esp, 0xc
jmp 0x421de5
mov eax, 0x10
cmp dword [esp + 0x14], eax
jle 0x421eef
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], 1
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4220bd
mov eax, dword [edi + 0xd8]
cmp eax, 0xffffffff
je 0x421f1c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [esp + 0xe], bl
mov dword [edi + 0xd8], esi
jne 0x421f46
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
push edx
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00434000
add esp, 0xc
mov dword [esp + 0x28], ebx
mov word [esp + 0x26], bx
mov ebx, 0x10
push ebx
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4220b6
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x421e04
mov eax, dword [esp + 0x36]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 1
push esi
movzx ebx, ax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jge 0x421fab
push str.listen_2__failed_on_socket
jmp 0x4220c2
cmp byte [esp + 0xe], 0
push 0x100
je 0x421fcd
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x30]
push edx
push 2
call fcn.0041ded0
add esp, 0x10
jmp 0x421fdf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00413bf0
add esp, 0xc
lea edx, [esp + 0x4a]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4e]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x5c]
push str._hu._hu._hu._hu
push eax
call fcn.00434d2f
add esp, 0x18
cmp eax, 4
jne 0x4220cb
movzx ecx, word [esp + 0x4a]
movzx edx, word [esp + 0x48]
movzx eax, word [esp + 0x46]
movzx esi, bx
push esi
push ecx
movzx ecx, word [esp + 0x4c]
push edx
push eax
push ecx
push str.Telling_server_to_connect_to__d._d._d._d:_d_n
push ebp
call fcn.0041d040
movzx eax, word [esp + 0x66]
movzx ecx, word [esp + 0x64]
mov edx, esi
and edx, 0xff
push edx
movzx edx, word [esp + 0x66]
shr esi, 8
push esi
push eax
movzx eax, word [esp + 0x6c]
push ecx
push edx
push eax
push str.PORT__d__d__d__d__d__d
push edi
call fcn.004215f0
add esp, 0x3c
test eax, eax
jne 0x4220d0
cmp byte [esp + 0xf], al
je 0x42207f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041f2c0
add esp, 4
mov dword [edi + 0x320], 1
mov eax, 0x1a
mov ecx, edi
mov byte [edi + 0x131], 1
call fcn.00421030
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00430e4c
add esp, 0x144
ret
push str.bind_2__failed_on_socket
jmp 0x4220c2
push str.socket_2__failed___s_
push ebp
call fcn.0041d0d0
add esp, 8
mov eax, 0x1e
mov ecx, dword [esp + 0x14c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430e4c
add esp, 0x144
ret