Function at 0x1003b650
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x65c
mov eax, dword [0x1006b400]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
mov ebp, dword [esp + 0x668]
push esi
push edi
mov edi, dword [esp + 0x674]
mov esi, dword [ebp + 0x18]
push 0x2e
push 0
mov dword [esp + 0x40], ebp
lea eax, [esi + 0x3f0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc5]
push eax
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0xc8], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 0x504]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x1003b8cc
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x1003b6f1
sub edx, dword [esp + 0x14]
cmp edx, 1
jbe 0x1003b8cc
mov al, byte [ecx]
cmp al, 0x5b
jne 0x1003b736
lea ebx, [ecx + 1]
mov esi, ebx
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebx, eax
mov eax, ecx
mov dword [esp + 0x30], ebx
sub eax, esi
mov ebx, ecx
neg ebx
sbb ebx, ebx
and ebx, eax
jmp 0x1003b76e
cmp al, 0x3a
je 0x1003b776
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x24]
mov ebx, esi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x1003b7cf
lea ecx, [esp + 0x44]
sub ebx, eax
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [eax - 1]
neg ecx
sbb ecx, ecx
and ecx, esi
xor esi, esi
xor edx, edx
test ecx, ecx
je 0x1003b7e1
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x1003b7e1
push 0xa
push edx
inc eax
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.1001b630
push 0x2d
push dword [esp + 0x38]
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x1003b7cb
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.1001b630
add esp, 0x10
movzx edx, ax
jmp 0x1003b7e1
mov edx, esi
jmp 0x1003b7e1
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1003b7d4
sub ebx, ecx
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x1003b8b6
cmp ebx, 0x32
jae 0x1003bd5a
push ebx
push dword [esp + 0x34]
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x270]
add esp, 0xc
mov byte [esp + ebx + 0xec], 0
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esi + 0x24]
push dword [esi + 0x4c8]
add eax, 0x10
push eax
call fcn.10055a60
add esp, 4
push eax
mov eax, dword [esi + 0x24]
push dword [eax]
call fcn.10006ec0
add esp, 0x18
sub eax, 0
je 0x1003b88b
sub eax, 1
je 0x1003bd5a
sub eax, 1
jne 0x1003b894
lea esi, [esp + 0x264]
jmp 0x1003b896
lea esi, [esp + 0xec]
jmp 0x1003b896
xor esi, esi
mov eax, dword [esp + 0x24]
movzx ebx, ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
movzx ebx, ax
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x1003b964
jmp 0x1003b8c8
movzx ecx, ax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1003b91b
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10002d10
push eax
push str.getsockname___failed:__s
push ebp
call fcn.100181f0
add esp, 0x18
jmp 0x1003bd5a
mov ax, word [esp + 0x3c]
cmp ax, 0x17
je 0x1003b92f
lea ecx, [esp + 0x40]
movzx eax, ax
jmp 0x1003b938
lea ecx, [esp + 0x44]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x268]
movzx eax, ax
push edx
push ecx
push eax
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x1003bd5a
xor al, al
lea esi, [esp + 0x264]
mov byte [esp + 0x13], al
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
push ebp
call fcn.100221b0
add esp, 0x14
cmp eax, 1
jne 0x1003b98a
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.1000c760
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1003bd4b
mov ebx, dword [eax]
push eax
push ebp
call fcn.10022740
add esp, 8
test ebx, ebx
je 0x1003bd4b
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebx
push ebp
call fcn.1004a790
add esp, 0x14
test eax, eax
je 0x1003ba01
call esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1003b9b0
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.10002d10
push eax
push str.socket_failure:__s
push ebp
call fcn.100181f0
add esp, 0x18
jmp 0x1003bd5a
push dword [ebx + 0x10]
lea eax, [esp + 0x40]
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x1003bd3b
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x14]
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1003bb16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x1003bad0
cmp eax, 0x2741
jne 0x1003bad0
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.10002d10
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push ebp
call fcn.100182c0
add esp, 0x1c
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1003b8ee
mov eax, dword [esp + 0x28]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x1003ba2d
cmp eax, 0x2740
je 0x1003badc
cmp eax, 0xd
jne 0x1003baeb
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x1003ba22
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.10002d10
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push ebp
call fcn.100181f0
add esp, 0x1c
jmp 0x1003bd5a
cmp si, word [esp + 0x1c]
ja 0x1003bd3b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1003b8ee
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1003bb82
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10002d10
push eax
push str.socket_failure:__s
push ebp
call fcn.100181f0
add esp, 0x18
jmp 0x1003bd5a
push 0x2f
lea eax, [esp + 0xc0]
push eax
push ebx
call fcn.10022160
mov ebx, dword [esp + 0x24]
add esp, 0xc
cmp byte [ebx + 0x251], 0
jne 0x1003bbb2
cmp byte [ebx + 0x24c], 0
je 0x1003bbb2
mov byte [ebx + 0x251], 1
lea eax, [esp + 0x20]
push eax
push 1
push ebx
push ebp
call fcn.1004a540
mov esi, eax
add esp, 0x10
mov dword [esp + 0x24], esi
test esi, esi
jne 0x1003bd5f
mov dword [esp + 0x20], 0xffffffff
cmp edi, 2
je 0x1003bc3e
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax]
cmp byte [ebx + 0x251], 0
jne 0x1003bbfd
test edi, edi
je 0x1003bc34
cmp edi, 1
jne 0x1003bc08
cmp cx, 2
jne 0x1003bc34
movzx eax, cx
sub eax, 2
je 0x1003bc15
sub eax, 0x15
jne 0x1003bc34
push dword [esp + 0x3e]
call esi
movzx ebx, ax
test edi, edi
je 0x1003bce9
cmp edi, 1
je 0x1003bc5f
mov cx, word [esp + 0x3c]
mov ebx, dword [esp + 0x18]
inc edi
cmp edi, 2
jne 0x1003bbf0
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0x1c
test esi, esi
je 0x1003bd69
jmp 0x1003bd5f
lea edx, [esp + 0x120]
mov ebp, 0x2c
lea esi, [esp + 0xbc]
mov cl, byte [esi]
test cl, cl
je 0x1003bc89
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add esi, 1
jne 0x1003bc72
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.1001d7d0
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x134]
mov ebp, dword [esp + 0x4c]
push eax
push str.PORT
push 0x10062bfc
push ebx
push ebp
call fcn.100544d0
mov esi, eax
add esp, 0x28
test esi, esi
je 0x1003bc42
push esi
call fcn.10002e90
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.100181f0
add esp, 0x10
jmp 0x1003bd5f
movzx eax, bx
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push ebp
call fcn.100544d0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1003bc42
push esi
call fcn.10002e90
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.100181f0
add esp, 0x10
jmp 0x1003bd5f
push str.bind___failed__we_ran_out_of_ports
push ebp
call fcn.100181f0
add esp, 8
jmp 0x1003bd5a
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.100181f0
add esp, 0xc
mov esi, 0x1e
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1003bd80
push eax
push dword [esp + 0x1c]
push ebp
call fcn.1004a760
add esp, 0xc
mov ecx, dword [esp + 0x668]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10058150
add esp, 0x65c
ret