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

Disassembly:
sub esp, 0x660
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
mov ebx, dword [esp + 0x66c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x674]
push 0x2f
push 0
mov dword [esp + 0x44], edi
mov ebp, dword [edi + 0x18]
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], 0xffffffff
lea eax, [ebp + 0x3f0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc8]
push eax
call fcn.004f3400
mov edx, dword [edi + 0x55c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], edx
xor esi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
test edx, edx
je 0x45a3b6
mov ecx, edx
lea ebp, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a210
sub ecx, ebp
cmp ecx, 1
jbe 0x45a3b2
mov al, byte [edx]
cmp al, 0x5b
jne 0x45a24c
lea eax, [edx + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call fcn.004f3560
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45a3b2
mov esi, ebp
sub esi, dword [esp + 0x14]
jmp 0x45a28a
cmp al, 0x3a
jne 0x45a254
mov ebp, edx
jmp 0x45a28a
push 0x3a
push edx
call fcn.004f3560
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x14], edx
test ebp, ebp
je 0x45a393
lea ecx, [esp + 0x48]
mov esi, ebp
push ecx
push eax
push 0x17
sub esi, eax
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x45a2f0
test ebp, ebp
je 0x45a300
push 0x3a
push ebp
call fcn.004f3560
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45a300
push 0xa
lea eax, [ebp + 1]
push 0
push eax
call fcn.005024a5
push eax
call fcn.00421220
movzx eax, ax
push 0x2d
push ebp
mov dword [esp + 0x34], eax
call fcn.004f3560
add esp, 0x18
test eax, eax
je 0x45a383
push 0xa
inc eax
push 0
push eax
call fcn.005024a5
push eax
call fcn.00421220
mov ecx, dword [esp + 0x2c]
add esp, 0x10
movzx eax, ax
mov dword [esp + 0x20], eax
cmp cx, ax
jbe 0x45a300
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
test esi, esi
je 0x45a3b2
cmp esi, 0x32
jae 0x45a911
push esi
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.004f37d0
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x274]
add esp, 0xc
mov byte [esp + esi + 0xf0], 0
push 0x401
push eax
lea eax, [esp + 0xf8]
push eax
mov eax, dword [ebp + 0x24]
push dword [ebp + 0x4c8]
add eax, 0x10
push eax
call fcn.00470100
add esp, 4
push eax
mov eax, dword [ebp + 0x24]
push dword [eax]
call fcn.004344d0
add esp, 0x18
sub eax, 0
je 0x45a3a6
sub eax, 1
je 0x45a911
sub eax, 1
jne 0x45a3b6
jmp 0x45a449
mov ecx, dword [esp + 0x1c]
movzx eax, cx
mov dword [esp + 0x20], eax
jmp 0x45a300
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45a398
sub esi, ecx
jmp 0x45a304
lea esi, [esp + 0xf0]
jmp 0x45a450
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [ebp + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45a405
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041d7a0
push eax
push 0x55b6ec
push edi
call fcn.004335f0
add esp, 0x18
jmp 0x45a911
mov ax, word [esp + 0x40]
push 0x401
cmp ax, 0x17
je 0x45a428
lea ecx, [esp + 0x26c]
movzx eax, ax
push ecx
lea ecx, [esp + 0x4c]
push ecx
push eax
jmp 0x45a437
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x50]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x45a911
mov byte [esp + 0x13], 0
lea esi, [esp + 0x268]
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
push edi
call fcn.0043d590
add esp, 0x14
cmp eax, 1
jne 0x45a476
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00427300
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45a902
mov ebp, dword [eax]
push eax
push edi
call fcn.0043d940
add esp, 8
test ebp, ebp
je 0x45a902
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebp
push edi
call fcn.00465a90
add esp, 0x14
test eax, eax
je 0x45a4d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x45a4a0
jmp 0x45a4d6
test ebp, ebp
jne 0x45a4fd
push 0x100
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.0041d7a0
push eax
push 0x55b73c
push edi
call fcn.004335f0
add esp, 0x18
jmp 0x45a911
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a514
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a519
mov eax, 0x55b450
push eax
push 0x55b750
push edi
call fcn.00433840
push dword [ebp + 0x10]
lea eax, [esp + 0x50]
push dword [ebp + 0x18]
push eax
call fcn.004f37d0
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
cmp ax, word [esp + 0x20]
movzx esi, ax
ja 0x45a8f2
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x24]
mov word [esp + 0x46], ax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x45a639
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x45a5f7
cmp eax, 0x2741
jne 0x45a5f7
push 0x100
lea eax, [esp + 0x16c]
push eax
push 0x2741
call fcn.0041d7a0
push eax
movzx eax, si
push eax
push 0x55b77c
push edi
call fcn.004336c0
add esp, 0x1c
mov dword [esp + 0x24], 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45a3d8
mov eax, dword [esp + 0x1c]
movzx esi, ax
cmp si, word [esp + 0x20]
mov byte [esp + 0x13], 0
jmp 0x45a54b
cmp eax, 0x2740
je 0x45a603
cmp eax, 0xd
jne 0x45a60e
inc esi
cmp si, word [esp + 0x20]
jmp 0x45a54b
push 0x100
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.0041d7a0
push eax
movzx eax, si
push eax
push 0x55b7ac
push edi
call fcn.004335f0
add esp, 0x1c
jmp 0x45a911
cmp si, word [esp + 0x20]
ja 0x45a8f2
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45a3d8
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a67f
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a684
mov eax, 0x55b450
movzx esi, si
push esi
push eax
push 0x55b7ec
push edi
call fcn.00433840
add esp, 0x10
push 1
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x45a6d4
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041d7a0
push eax
push 0x55b73c
push edi
call fcn.004335f0
add esp, 0x18
jmp 0x45a911
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a6eb
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a6f0
mov eax, 0x55b450
push esi
push eax
push 0x55b820
push edi
call fcn.00433840
push 0x2f
lea eax, [esp + 0xd4]
push eax
push ebp
call fcn.0043d550
mov ebp, dword [esp + 0x34]
add esp, 0x1c
cmp byte [ebp + 0x251], 0
jne 0x45a72d
cmp byte [ebp + 0x24c], 0
je 0x45a72d
mov byte [ebp + 0x251], 1
lea eax, [esp + 0x28]
push eax
push 1
push ebp
push edi
call fcn.00465840
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x45a911
mov dword [esp + 0x28], 0xffffffff
cmp ebx, 2
je 0x45a7ae
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x40]
cmp byte [ebp + 0x251], 0
jne 0x45a771
test ebx, ebx
je 0x45a7a8
cmp ebx, 1
jne 0x45a77c
cmp cx, 2
jne 0x45a7a8
movzx eax, cx
sub eax, 2
je 0x45a789
sub eax, 0x15
jne 0x45a7a8
push dword [esp + 0x42]
call esi
movzx ebp, ax
test ebx, ebx
je 0x45a871
cmp ebx, 1
je 0x45a7e3
mov cx, word [esp + 0x40]
mov ebp, dword [esp + 0x18]
inc ebx
cmp ebx, 2
jne 0x45a764
mov esi, dword [esp + 0x30]
mov dword [esi + 0xa0], ebx
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x49e], 0x1c
je 0x45a8e1
test esi, esi
je 0x45a8c7
movzx eax, byte [esi + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a8cc
lea edx, [esp + 0x124]
mov edi, 0x2c
lea esi, [esp + 0xc0]
mov cl, byte [esi]
test cl, cl
je 0x45a80d
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x45a7f6
movzx ecx, bp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push 0x55b880
push 0x14
push edx
mov byte [edx], 0
call fcn.00438940
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x138]
mov edi, dword [esp + 0x50]
push eax
push 0x55b321
push 0x55ad10
push esi
push edi
call fcn.0046ede0
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45a7b2
push ecx
call fcn.0041d910
push eax
push 0x55b888
push edi
call fcn.004335f0
add esp, 0x10
jmp 0x45a8e8
mov esi, dword [esp + 0x30]
movzx eax, bp
push eax
lea eax, [esp + 0xc4]
push eax
xor eax, eax
cmp word [esp + 0x48], 2
setne al
inc eax
push eax
push 0x55b31c
push 0x55b84c
push esi
push edi
call fcn.0046ede0
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45a7b2
push ecx
call fcn.0041d910
push eax
push 0x55b85c
push edi
call fcn.004335f0
add esp, 0x10
jmp 0x45a8e8
mov eax, 0x55b450
push dword [0x55b248]
push eax
push 0x55b454
push edi
call fcn.00433840
add esp, 0x10
mov byte [esi + 0x49e], 0x1c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x45a956
jmp 0x45a911
push 0x55b7c8
push edi
call fcn.004335f0
add esp, 8
jmp 0x45a911
push esi
push 0x55b708
push edi
call fcn.004335f0
add esp, 0xc
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x49e], 0
je 0x45a94b
test esi, esi
je 0x45a931
movzx eax, byte [esi + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a936
mov eax, 0x55b450
push dword [0x55b1d8]
push eax
push 0x55b454
push edi
call fcn.00433840
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov byte [esi + 0x49e], 0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x45a973
push eax
push dword [esp + 0x1c]
push edi
call fcn.00465a60
mov eax, dword [esp + 0x38]
add esp, 0xc
jmp 0x45a975
mov eax, ecx
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472312
add esp, 0x660
ret