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

Disassembly:
sub esp, 0x9a4
mov al, byte [0x482f38]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xb0], al
mov ebx, dword [esp + 0x9b8]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xb1]
rep stosd dword es:[edi], eax
mov edx, dword [ebx]
mov dword [esp + 0x10], 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [edx + 0x43c]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov edi, dword [edx + 0x43c]
cmp edi, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], 1
je 0x444b15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x444b15
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x16
jae 0x4449c1
mov ecx, 0x16
jmp 0x4449cd
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc ecx
push 1
push ecx
call dword [0x475844]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4449f0
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x9a4
ret
cmp byte [esi], 0x3a
jne 0x444a56
mov edi, esi
test edi, edi
je 0x444ab9
push 0x3a
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x444ab9
mov edi, dword [sym.imp.MSVCRT.dll_strtoul]
push 0xa
lea eax, [esi + 1]
push 0
push eax
call edi
push eax
call fcn.0044c4f0
push 0x2d
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x18
test eax, eax
je 0x444a9e
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.0044c4f0
add esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x444aa8
push 0x3a
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x444a7d
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x4449f7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x444ab9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
jmp 0x444ab9
cmp word [esp + 0x1c], ax
jbe 0x444ab9
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
cmp byte [ebp], 0
je 0x444b15
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x88]
lea edx, [esp + 0x1b0]
push 0x401
push edx
mov edx, dword [ecx + 0x18]
push ebp
push eax
push edx
call fcn.00453b70
add esp, 4
push eax
mov eax, dword [ebx + 0x4c]
mov ecx, dword [eax + 4]
push ecx
call fcn.00453b70
add esp, 0x18
sub eax, 0
je 0x444b0b
dec eax
je 0x444e50
dec eax
jne 0x444b15
lea edi, [esp + 0x1b0]
jmp 0x444b0d
mov edi, ebp
test edi, edi
jne 0x444ba3
mov ecx, dword [ebx + 0x190]
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x444b6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.00436470
mov edx, dword [esp + 0x1c]
push eax
push str.getsockname___failed:__s
push edx
call fcn.00430d70
push ebp
call dword [0x475838]
add esp, 0x18
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x1b0]
push 0x401
lea ecx, [esp + 0x38]
push eax
and edx, 0xffff
push ecx
push edx
call fcn.00438320
add esp, 0x10
lea edi, [esp + 0x1b0]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x28]
push eax
push 0
push edi
push ebx
call fcn.00425fd0
add esp, 0x10
cmp eax, 1
jne 0x444bc7
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.004256b0
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x444be3
mov edx, dword [esp + 0x14]
mov esi, dword [eax]
push eax
push edx
call fcn.00426190
add esp, 8
test esi, esi
jne 0x444c0d
mov eax, dword [esp + 0x14]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push eax
call fcn.00430d70
push ebp
call dword [0x475838]
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
push ebp
call dword [0x475838]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
mov ebp, esi
lea ecx, [esp + 0x10]
push ecx
push 0
push ebp
push ebx
call fcn.00434c90
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
je 0x444c4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x444c23
jmp 0x444c51
test ebp, ebp
jne 0x444c7b
push edi
push ebx
call fcn.00436470
mov edx, dword [esp + 0x1c]
push eax
push str.socket_failure:__s
push edx
call fcn.00430d70
add esp, 0x14
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov eax, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x10]
cmp si, word [esp + 0x20]
mov dword [esp + 0x18], ecx
ja 0x444db1
cmp word [esp + 0x30], 2
jne 0x444cbd
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x444daa
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x444d3f
cmp eax, 0x2741
jne 0x444d3f
push eax
push ebx
call fcn.00436470
and esi, 0xffff
push eax
push esi
mov esi, dword [esp + 0x24]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00430d00
mov ecx, dword [ebx + 0x190]
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x444d59
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x444d4c
cmp eax, 0x2740
je 0x444d4b
cmp eax, 0xd
jne 0x444d6e
inc esi
cmp si, word [esp + 0x20]
jbe 0x444ca9
jmp 0x444db1
call edi
push eax
push ebx
call fcn.00436470
push eax
push str.getsockname___failed:__s
push esi
jmp 0x444e3d
push eax
push ebx
call fcn.00436470
and esi, 0xffff
push eax
mov eax, dword [esp + 0x20]
push esi
push str.bind_port_hu__failed:__s
push eax
call fcn.00430d70
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call fcn.00434c30
add esp, 0x20
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
cmp si, word [esp + 0x20]
jbe 0x444dde
mov edx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.00430d70
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.00434c30
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x444e14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.00436470
push eax
push str.getsockname___failed:__s
jmp 0x444e38
mov eax, dword [esp + 0x10]
push 1
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x444e60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.00436470
push eax
push str.socket_failure:__s
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00430d70
mov edx, dword [esp + 0x24]
push edx
push ebx
call fcn.00434c30
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x9a4
ret
lea eax, [esp + 0xb0]
push pe_nt_image_headers32
push eax
push ebp
call fcn.00425cc0
mov edi, dword [esp + 0x9c8]
mov esi, 2
add esp, 0xc
cmp edi, esi
je 0x444ecc
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebx + 0x2bc]
test eax, eax
jne 0x444e9a
test edi, edi
je 0x444ec7
cmp edi, 1
jne 0x444ea6
cmp word [esp + 0x30], si
jne 0x444ec7
mov eax, dword [esp + 0x30]
and eax, 0xffff
sub eax, esi
jne 0x444ec7
mov ecx, dword [esp + 0x32]
push ecx
call ebp
test edi, edi
je 0x444f08
cmp edi, 1
je 0x444f81
inc edi
cmp edi, esi
jne 0x444e8c
mov esi, dword [esp + 0x24]
push ebx
mov dword [ebx + 0x540], edi
call fcn.00445040
mov eax, dword [esp + 0x14]
push 0x1c
push ebx
mov dword [ebx + 0x194], eax
mov dword [ebx + 0x2a0], 1
call fcn.00443a80
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
and eax, 0xffff
lea edx, [esp + 0xb0]
push eax
xor eax, eax
cmp word [esp + 0x34], si
push edx
lea ebp, [ebx + 0x4d8]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.00453e30
mov esi, eax
add esp, 0x18
test esi, esi
je 0x444ed0
push esi
call fcn.004360e0
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push ecx
call fcn.00430d70
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.00434c30
push 0
push ebx
mov dword [ebp + 0x68], 1
call fcn.00443a80
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x5b4]
test edx, edx
je 0x444fb0
lea esi, [esp + 0xb0]
mov dl, byte [esi]
test dl, dl
je 0x444fb0
cmp dl, 0x2e
jne 0x444faa
mov byte [ecx], 0x2c
jmp 0x444fac
mov byte [ecx], dl
inc ecx
inc esi
jne 0x444f9a
and eax, 0xffff
mov byte [ecx], 0
mov edx, eax
and edx, 0xff
shr eax, 8
push edx
push eax
push str.__d__d
push 0x14
push ecx
call fcn.00437bd0
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [ebx + 0x4d8]
push 0x478394
push eax
call fcn.00453e30
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
je 0x444ecc
mov esi, eax
push esi
call fcn.004360e0
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.00430d70
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.00434c30
push 0
push ebx
call fcn.00443a80
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret