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

Disassembly:
push ebp
mov ecx, 0xff
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x18c
mov eax, dword [eax + 0x17c]
mov edx, dword [edi]
mov dword [ebp - 0x154], eax
movzx eax, byte [0x50ae42]
mov dword [ebp - 0x158], edx
xor edx, edx
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x127]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov byte [ebp - 0x168], 0
mov ecx, dword [ebp - 0x158]
xor eax, eax
mov dword [ebp - 0x16c], eax
mov eax, dword [ecx + 0x70]
test eax, eax
jne 0x4327e0
mov eax, 0x10
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x98]
mov dword [esp], eax
call sub.WS2_32.DLL_getsockname
mov byte [ebp - 0x168], 1
sub esp, 0xc
test eax, eax
js 0x432934
movzx edx, byte [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
test eax, eax
setne al
or eax, edx
test al, 1
je 0x4328f7
mov dword [esp], 2
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_socket
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x43295c
mov eax, dword [edi + 0x9c]
cmp eax, 0xffffffff
je 0x4325d3
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
cmp byte [ebp - 0x168], 0
mov dword [edi + 0x9c], ebx
jne 0x432609
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x26], 0
mov eax, 0x10
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WSOCK32.DLL_bind
sub esp, 0xc
test eax, eax
js 0x432948
lea eax, [ebp - 0x144]
mov esi, 0x10
mov dword [ebp - 0x144], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.DLL_getsockname
sub esp, 0xc
test eax, eax
js 0x432934
movzx eax, word [ebp - 0x136]
mov dword [esp], eax
call sub.WS2_32.DLL_ntohs
sub esp, 4
mov ecx, 1
movzx esi, ax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.WSOCK32.DLL_listen
sub esp, 8
test eax, eax
js 0x432967
cmp byte [ebp - 0x168], 0
je 0x4327b5
mov dword [esp], 2
mov eax, 0x100
lea ebx, [ebp - 0x128]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call fcn.0043d970
mov dword [esp], ebx
lea eax, [ebp - 0x14a]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14e]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x150]
mov dword [esp + 8], eax
mov eax, str._hu._hu._hu._hu
mov dword [esp + 4], eax
call sub.msvcrt.dll_sscanf
cmp eax, 4
mov edx, 0x1e
jne 0x4327ab
mov dword [esp + 0x18], esi
mov ecx, str.Telling_server_to_connect_to__d._d._d._d:_d_n
movzx eax, word [ebp - 0x14a]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x14c]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x14e]
mov dword [esp + 0xc], eax
movzx eax, word [ebp - 0x150]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call fcn.0042c910
mov eax, esi
shr esi, 8
and eax, 0xff
mov dword [esp + 0x1c], eax
mov edx, str.PORT__d__d__d__d__d__d
mov dword [esp + 0x18], esi
movzx eax, word [ebp - 0x14a]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x14c]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x14e]
mov dword [esp + 0xc], eax
movzx eax, word [ebp - 0x150]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00431f90
test eax, eax
mov edx, eax
je 0x432826
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x128]
mov eax, 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov ecx, dword [ebp - 0x16c]
mov dword [esp], ecx
call fcn.00429100
jmp 0x4326c8
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
cmp eax, 0xffffffff
mov edx, eax
je 0x432859
xor eax, eax
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x158]
mov eax, dword [ecx + 0x70]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0043d8f0
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
test eax, eax
jne 0x432578
jmp 0x43253c
mov edx, dword [ebp - 0x16c]
mov dword [esp], edx
call fcn.0043d7e0
mov ecx, dword [ebp - 0x154]
mov eax, edi
mov edx, 0x19
mov dword [ecx + 0x48], 2
call fcn.00431800
lea esp, [ebp - 0xc]
xor edx, edx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x100
lea ebx, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x70]
mov dword [esp], eax
call fcn.00440420
test eax, eax
jne 0x432918
mov ecx, dword [ebp - 0x158]
mov eax, dword [ecx + 0x70]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 1
jbe 0x43253c
xor ecx, ecx
xor edx, edx
lea esi, [ebp - 0x13c]
mov dword [ebp - 0x13c], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004292e0
dec eax
je 0x432972
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x43253c
mov edx, dword [eax]
mov dword [ebp - 0x16c], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x158]
mov dword [esp], ecx
call fcn.00429530
jmp 0x432813
mov eax, str.couldt_find_IP_address_to_use
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x158]
mov dword [esp], edx
call fcn.0042c530
mov edx, 0x1e
jmp 0x4327ab
mov dword [esp], ebx
xor esi, esi
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov edx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
jmp 0x432805
mov ebx, 0x50afb7
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
jmp 0x432909
mov eax, str.bind_2__failed_on_socket
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x158]
mov dword [esp], ecx
jmp 0x432909
mov eax, str.socket_2__failed___s_
mov dword [esp + 4], eax
jmp 0x43293d
mov edx, str.listen_2__failed_on_socket
mov dword [esp + 4], edx
jmp 0x432900
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00439cd0
jmp 0x4328ca