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

Disassembly:
push ebp
lea ebp, [esp - 0x928]
sub esp, 0x9a8
mov eax, dword [0x441040]
xor eax, ebp
mov dword [ebp + 0x924], eax
and dword [ebp - 0x78], 0
push ebx
mov ebx, dword [edi]
push esi
push 0xff
lea eax, [ebp + 0x825]
push 0
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp + 0x824], 0
call sub.MSVCR80.dll_memset
xor ecx, ecx
lea eax, [ebx + 0x354]
mov esi, dword [eax]
mov dword [ebp - 0x80], ecx
mov eax, dword [eax]
add esp, 0xc
cmp eax, ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x64], ecx
je 0x421cbb
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 1
pop ecx
jbe 0x421cbb
push esi
call sub.MSVCR80.dll_strlen
cmp eax, 0x16
pop ecx
jae 0x421bb8
push 0x16
pop eax
jmp 0x421bbf
push esi
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push 1
push eax
call dword [0x441010]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
jne 0x421bda
push 0x1b
pop eax
jmp 0x421ff1
cmp byte [esi], 0x3a
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
jne 0x421bea
mov dword [ebp - 0x68], esi
jmp 0x421c15
push 0x3a
push esi
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x68], eax
je 0x421c0a
sub eax, esi
push eax
push esi
push dword [ebp - 0x64]
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
jmp 0x421c15
push esi
push dword [ebp - 0x64]
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 0x68], 0
je 0x421c7e
push 0x3a
push dword [ebp - 0x68]
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x68], eax
je 0x421c7e
mov esi, dword [sym.imp.MSVCR80.dll_strtoul]
push 0xa
inc eax
push 0
push eax
call esi
push eax
call fcn.00415c15
movzx eax, ax
push 0x2d
push dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
call ebx
add esp, 0x18
test eax, eax
je 0x421c69
push 0xa
inc eax
push 0
push eax
call esi
push eax
call fcn.00415c15
add esp, 0x10
movzx eax, ax
jmp 0x421c6d
movzx eax, word [ebp - 0x74]
cmp word [ebp - 0x74], ax
mov dword [ebp - 0x70], eax
jbe 0x421c7e
and dword [ebp - 0x70], 0
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x64]
cmp byte [eax], 0
je 0x421cb2
push 0x401
lea ecx, [ebp + 0x420]
push ecx
push eax
mov eax, dword [edi + 0x34]
push dword [eax + 4]
call fcn.004123f0
add esp, 0x10
test eax, eax
jne 0x421caa
mov eax, dword [ebp - 0x64]
jmp 0x421cb4
lea eax, [ebp + 0x420]
jmp 0x421cb4
xor eax, eax
test eax, eax
mov ebx, dword [ebp - 0x7c]
jne 0x421d30
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [edi + 0x128]
mov dword [ebp - 0x6c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x421d0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042754d
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004144d7
add esp, 0x14
cmp dword [ebp - 0x64], 0
je 0x421d06
push dword [ebp - 0x64]
call dword [0x441004]
pop ecx
push 0x1e
jmp 0x421bd4
push 0x401
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp - 0x5c]
push eax
movzx eax, word [ebp - 0x60]
push eax
call fcn.0041ab66
add esp, 0x10
lea eax, [ebp + 0x420]
lea ecx, [ebp - 0x80]
push ecx
xor esi, esi
push esi
push eax
push edi
call fcn.0040cbf1
add esp, 0x10
cmp eax, 1
jne 0x421d52
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00415967
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
cmp eax, esi
je 0x421d64
mov esi, dword [eax]
push eax
push ebx
call fcn.0040cd58
pop ecx
pop ecx
cmp dword [ebp - 0x64], 0
je 0x421d74
push dword [ebp - 0x64]
call dword [0x441004]
pop ecx
test esi, esi
jne 0x421d89
push str.Curl_resolv_failed__we_can_not_recover_
push ebx
call fcn.004144d7
pop ecx
jmp 0x421d05
and dword [ebp - 0x7c], 0
cmp dword [esi + 8], 0
jne 0x421d99
mov eax, dword [edi + 0x6c]
mov dword [esi + 8], eax
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x64], eax
jne 0x421dc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0x7c], eax
jne 0x421d8d
test esi, esi
jne 0x421de1
push dword [ebp - 0x7c]
push edi
call fcn.0042754d
push eax
push str.socket_failure:__s
push ebx
call fcn.004144d7
add esp, 0x14
jmp 0x421d06
push dword [esi + 0x10]
lea eax, [ebp - 0x60]
push dword [esi + 0x18]
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
movzx ecx, ax
add esp, 0xc
cmp ax, word [ebp - 0x70]
mov dword [ebp - 0x68], ecx
ja 0x421eac
cmp word [ebp - 0x60], 2
jne 0x421e20
push dword [ebp - 0x68]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5e], ax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x421ea2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2741
cmp eax, ecx
jne 0x421e86
push ecx
push edi
call fcn.0042754d
push eax
movzx eax, word [ebp - 0x68]
push eax
push str.bind_port_hu__failed:__s
push ebx
call fcn.004144d7
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [edi + 0x128]
mov dword [ebp - 0x6c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x421ebb
movzx eax, word [ebp - 0x74]
mov dword [ebp - 0x68], eax
jmp 0x421e98
cmp eax, 0x2740
je 0x421e92
cmp eax, 0xd
jne 0x421ee5
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp ax, word [ebp - 0x70]
jbe 0x421e0c
mov ax, word [ebp - 0x70]
cmp word [ebp - 0x68], ax
jbe 0x421f02
push str.bind___failed__we_ran_out_of_ports_
push ebx
call fcn.004144d7
pop ecx
pop ecx
jmp 0x421ed7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042754d
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004144d7
add esp, 0x14
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x421d06
push eax
push edi
call fcn.0042754d
push eax
movzx eax, word [ebp - 0x68]
push eax
push str.bind_port_hu__failed:__s
push ebx
call fcn.004144d7
add esp, 0x18
jmp 0x421ed7
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x421ebb
push 1
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x421f42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042754d
push eax
push str.socket_failure:__s
jmp 0x421ece
push 0x100
lea eax, [ebp + 0x824]
push eax
push esi
call fcn.0040ca29
add esp, 0xc
push 2
pop ebx
jmp 0x421fad
cmp dword [edi + 0x1d4], 0
jne 0x421f6e
cmp dword [ebp + 0x930], 0
je 0x421fa7
cmp dword [ebp + 0x930], 1
jne 0x421f7d
cmp word [ebp - 0x60], bx
jne 0x421fa7
movzx eax, word [ebp - 0x60]
sub eax, ebx
jne 0x421fa7
push dword [ebp - 0x5e]
call dword [sym.imp.WS2_32.dll_ntohs]
cmp dword [ebp + 0x930], 0
movzx esi, ax
je 0x422008
cmp dword [ebp + 0x930], 1
je 0x422044
inc dword [ebp + 0x930]
cmp dword [ebp + 0x930], ebx
jne 0x421f5c
mov eax, dword [ebp + 0x930]
lea esi, [edi + 0x12c]
mov dword [edi + 0x42c], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x421fd5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x64]
mov dword [esi], eax
mov dword [edi + 0x1b4], 1
mov dword [edi + 0x438], 0x1c
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x924]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b108
add ebp, 0x928
leave
ret
movzx eax, si
push eax
lea eax, [ebp + 0x824]
push eax
xor eax, eax
cmp word [ebp - 0x60], bx
setne al
inc eax
push eax
push str.EPRT
lea eax, [edi + 0x3c8]
push str._s__d_s_hu
push eax
call fcn.00428ad8
add esp, 0x18
test eax, eax
mov dword [ebp - 0x78], eax
je 0x421fb5
jmp 0x421fee
lea ecx, [ebp + 0x20]
lea edx, [ebp + 0x824]
mov al, byte [edx]
test al, al
je 0x422062
cmp al, 0x2e
jne 0x42205c
mov byte [ecx], 0x2c
jmp 0x42205e
mov byte [ecx], al
inc ecx
inc edx
jne 0x42204d
movzx eax, si
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.0041a145
lea eax, [ebp + 0x20]
push eax
push str.PORT
lea eax, [edi + 0x3c8]
push str._s__s
push eax
call fcn.00428ad8
add esp, 0x24
jmp 0x422037