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

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x9ac], eax
mov al, byte [0x4b94d7]
push ebx
push ebp
mov ebp, dword [esp + 0x9c0]
push esi
mov esi, dword [ebp]
push edi
push 0xff
xor edi, edi
lea ecx, [esp + 0xb5]
push edi
push ecx
mov dword [esp + 0x20], esi
mov byte [esp + 0xbc], al
call fcn.0048aa40
mov esi, dword [esi + 0x364]
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], ebx
cmp esi, edi
je 0x443fc9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443eb7
sub eax, edx
cmp eax, 1
jbe 0x443fc9
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443ed0
sub eax, edx
cmp eax, 0x16
jae 0x443ee5
mov eax, 0x16
jmp 0x443ef9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443ef0
sub eax, edx
inc eax
push 1
push eax
call dword [0x4c997c]
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
cmp ebx, edi
jne 0x443f1a
mov eax, 0x1b
jmp 0x44440d
cmp byte [esi], 0x3a
jne 0x443f8b
mov edi, esi
test edi, edi
je 0x443f7f
push 0x3a
push edi
call fcn.0048f7a0
mov esi, eax
add esp, 8
test esi, esi
je 0x443f7f
push 0xa
lea eax, [esi + 1]
push 0
push eax
call fcn.0048fc50
add esp, 0xc
movzx edi, ax
push 0x2d
push esi
mov dword [esp + 0x30], edi
call fcn.0048f7a0
add esp, 8
test eax, eax
je 0x443fc0
push 0xa
xor esi, esi
inc eax
push esi
push eax
call fcn.0048fc50
movzx eax, ax
add esp, 0xc
mov dword [esp + 0x20], eax
cmp di, ax
jbe 0x443f7f
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
cmp byte [ebx], 0
je 0x443fc9
mov eax, ebx
jmp 0x444066
push 0x3a
push esi
call fcn.0048f7a0
mov edi, eax
add esp, 8
test edi, edi
je 0x443fb0
mov edx, edi
sub edx, esi
push edx
push esi
push ebx
call fcn.0048f1a0
add esp, 0xc
jmp 0x443f21
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x443fb4
jmp 0x443f7f
movzx ecx, di
mov dword [esp + 0x20], ecx
jmp 0x443f7f
mov ecx, dword [ebp + 0x134]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x444027
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.00433ce0
add esp, 8
test ebx, ebx
je 0x44401d
push ebx
call dword [0x4c9970]
add esp, 4
mov eax, 0x1e
jmp 0x44440d
movzx eax, word [esp + 0x30]
sub eax, 2
je 0x44403e
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x444057
lea edx, [esp + 0x34]
push 0x401
push edx
lea esi, [esp + 0x5b8]
call fcn.004524c0
add esp, 8
lea eax, [esp + 0x5b0]
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push ebp
mov dword [esp + 0x34], eax
call fcn.00432980
add esp, 0x10
cmp eax, 1
jne 0x444093
lea edx, [esp + 0x18]
push edx
mov ebx, ebp
call fcn.004331f0
mov ebx, dword [esp + 0x14]
add esp, 4
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4440ae
mov esi, dword [esp + 0x14]
mov ebx, dword [edi]
call fcn.00432b70
test ebx, ebx
jne 0x4440e0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
call fcn.00433ce0
add esp, 8
test ebx, ebx
je 0x44401d
push ebx
call dword [0x4c9970]
add esp, 4
mov eax, 0x1e
jmp 0x44440d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4440f2
push eax
call dword [0x4c9970]
add esp, 4
mov edi, ebx
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
mov dword [esp + 0x18], edi
jmp 0x444108
mov edi, dword [esp + 0x18]
push ebp
lea ebx, [esp + 0x14]
xor edx, edx
mov ecx, edi
call fcn.0042fd40
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x444136
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x444104
jmp 0x44413a
test edi, edi
jne 0x444161
push ebp
mov edi, esi
call fcn.00452ce0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.socket_failure:__s
call fcn.00433ce0
add esp, 8
mov eax, 0x1e
jmp 0x44440d
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0048b710
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], ecx
movzx esi, ax
cmp ax, word [esp + 0x20]
ja 0x4442b4
cmp word [esp + 0x30], 2
jne 0x4441a3
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4442ad
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp dword [esp + 0x2c], 0
je 0x444229
cmp eax, 0x2741
jne 0x444229
push ebp
mov edi, eax
call fcn.00452ce0
mov ecx, dword [esp + 0x18]
add esp, 4
movzx edx, si
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
call fcn.00433c20
mov edx, dword [ebp + 0x134]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x444243
movzx esi, word [esp + 0x28]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x444236
cmp eax, 0x2740
je 0x444235
cmp eax, 0xd
jne 0x444277
inc esi
cmp si, word [esp + 0x20]
jbe 0x44418f
jmp 0x4442b4
call ebx
push ebp
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.getsockname___failed:__s
call fcn.00433ce0
mov esi, dword [esp + 0x18]
add esp, 8
mov eax, ebp
call fcn.0042fcf0
mov eax, 0x1e
jmp 0x44440d
push ebp
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
movzx eax, si
push eax
mov eax, dword [esp + 0x1c]
push str.bind_port_hu__failed:__s
call fcn.00433ce0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov eax, ebp
call fcn.0042fcf0
mov eax, 0x1e
jmp 0x44440d
cmp si, word [esp + 0x20]
jbe 0x4442da
mov eax, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
call fcn.00433ce0
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, ebp
call fcn.0042fcf0
mov eax, 0x1e
jmp 0x44440d
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44432f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x1c]
call fcn.00433ce0
add esp, 8
mov eax, ebp
call fcn.0042fcf0
mov eax, 0x1e
jmp 0x44440d
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x444355
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov edi, eax
call fcn.00452ce0
add esp, 4
push eax
push str.socket_failure:__s
jmp 0x444312
mov eax, dword [edi + 4]
sub eax, 2
jne 0x444378
mov edi, dword [edi + 0x18]
add edi, 4
push 0x100
push edi
lea esi, [esp + 0xb8]
call fcn.004524c0
add esp, 8
mov esi, dword [esp + 0x9cc]
cmp esi, 2
je 0x4443d1
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [ebp + 0x1e8], 0
jne 0x44439c
test esi, esi
je 0x4443cb
cmp esi, 1
jne 0x4443a7
cmp cx, 2
jne 0x4443cb
movzx eax, cx
sub eax, 2
jne 0x4443cb
mov eax, dword [esp + 0x32]
push eax
call ebx
movzx edi, ax
test esi, esi
je 0x444426
cmp esi, 1
je 0x44449f
mov cx, word [esp + 0x30]
inc esi
cmp esi, 2
jne 0x44438f
mov ebx, dword [esp + 0x24]
mov dword [ebp + 0x430], esi
mov esi, dword [ebp + 0x138]
cmp esi, 0xffffffff
je 0x4443ed
mov eax, ebp
call fcn.0042fcf0
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x138], ecx
mov dword [ebp + 0x1cc], 1
mov dword [ebp + 0x43c], 0x1c
mov eax, ebx
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f53
add esp, 0x9b4
ret
xor eax, eax
cmp word [esp + 0x30], 2
movzx ecx, di
setne al
push ecx
lea edx, [esp + 0xb4]
push edx
lea edi, [ebp + 0x3c8]
mov ecx, edi
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
call fcn.00455320
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4443d5
push ebx
call sym.SGWPNote.exe_curl_easy_strerror
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_EPRT_command:__s
call fcn.00433ce0
mov esi, dword [esp + 0x18]
add esp, 8
mov eax, ebp
call fcn.0042fcf0
mov dword [edi + 0x68], 1
mov dword [ebp + 0x43c], 0
jmp 0x44440b
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
lea ecx, [ecx]
mov al, byte [edx]
test al, al
je 0x4444c7
cmp al, 0x2e
jne 0x4444bf
mov byte [ecx], 0x2c
jmp 0x4444c1
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x4444b0
movzx eax, di
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 sym.SGWPNote.exe_curl_msnprintf
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push str.PORT
push 0x4bc868
lea ecx, [ebp + 0x3c8]
call fcn.00455320
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4443d5
push ebx
call sym.SGWPNote.exe_curl_easy_strerror
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_PORT_command:__s
call fcn.00433ce0
mov esi, dword [esp + 0x18]
add esp, 8
mov eax, ebp
call fcn.0042fcf0
mov dword [ebp + 0x43c], 0
jmp 0x44440b