Function at 0x45a080
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.004f3280
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 0x45a2c6
mov ecx, edx
lea ebp, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a120
sub ecx, ebp
cmp ecx, 1
jbe 0x45a2c2
mov al, byte [edx]
cmp al, 0x5b
jne 0x45a15c
lea eax, [edx + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call fcn.004f33e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45a2c2
mov esi, ebp
sub esi, dword [esp + 0x14]
jmp 0x45a19a
cmp al, 0x3a
jne 0x45a164
mov ebp, edx
jmp 0x45a19a
push 0x3a
push edx
call fcn.004f33e0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x14], edx
test ebp, ebp
je 0x45a2a3
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 0x45a200
test ebp, ebp
je 0x45a210
push 0x3a
push ebp
call fcn.004f33e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45a210
push 0xa
lea eax, [ebp + 1]
push 0
push eax
call fcn.0050228a
push eax
call fcn.00421170
movzx eax, ax
push 0x2d
push ebp
mov dword [esp + 0x34], eax
call fcn.004f33e0
add esp, 0x18
test eax, eax
je 0x45a293
push 0xa
inc eax
push 0
push eax
call fcn.0050228a
push eax
call fcn.00421170
mov ecx, dword [esp + 0x2c]
add esp, 0x10
movzx eax, ax
mov dword [esp + 0x20], eax
cmp cx, ax
jbe 0x45a210
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
test esi, esi
je 0x45a2c2
cmp esi, 0x32
jae 0x45a821
push esi
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.004f3650
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.00470000
add esp, 4
push eax
mov eax, dword [ebp + 0x24]
push dword [eax]
call fcn.00473670
add esp, 0x18
sub eax, 0
je 0x45a2b6
sub eax, 1
je 0x45a821
sub eax, 1
jne 0x45a2c6
jmp 0x45a359
mov ecx, dword [esp + 0x1c]
movzx eax, cx
mov dword [esp + 0x20], eax
jmp 0x45a210
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45a2a8
sub esi, ecx
jmp 0x45a214
lea esi, [esp + 0xf0]
jmp 0x45a360
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 0x45a315
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041d6d0
push eax
push 0x55b6ec
push edi
call fcn.00433540
add esp, 0x18
jmp 0x45a821
mov ax, word [esp + 0x40]
push 0x401
cmp ax, 0x17
je 0x45a338
lea ecx, [esp + 0x26c]
movzx eax, ax
push ecx
lea ecx, [esp + 0x4c]
push ecx
push eax
jmp 0x45a347
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 0x45a821
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.0043d490
add esp, 0x14
cmp eax, 1
jne 0x45a386
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00427250
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45a812
mov ebp, dword [eax]
push eax
push edi
call fcn.0043d840
add esp, 8
test ebp, ebp
je 0x45a812
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.004659c0
add esp, 0x14
test eax, eax
je 0x45a3e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x45a3b0
jmp 0x45a3e6
test ebp, ebp
jne 0x45a40d
push 0x100
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.0041d6d0
push eax
push 0x55b73c
push edi
call fcn.00433540
add esp, 0x18
jmp 0x45a821
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a424
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a429
mov eax, 0x55b450
push eax
push 0x55b750
push edi
call fcn.00433790
push dword [ebp + 0x10]
lea eax, [esp + 0x50]
push dword [ebp + 0x18]
push eax
call fcn.004f3650
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 0x45a802
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 0x45a549
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x45a507
cmp eax, 0x2741
jne 0x45a507
push 0x100
lea eax, [esp + 0x16c]
push eax
push 0x2741
call fcn.0041d6d0
push eax
movzx eax, si
push eax
push 0x55b77c
push edi
call fcn.00433610
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 0x45a2e8
mov eax, dword [esp + 0x1c]
movzx esi, ax
cmp si, word [esp + 0x20]
mov byte [esp + 0x13], 0
jmp 0x45a45b
cmp eax, 0x2740
je 0x45a513
cmp eax, 0xd
jne 0x45a51e
inc esi
cmp si, word [esp + 0x20]
jmp 0x45a45b
push 0x100
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.0041d6d0
push eax
movzx eax, si
push eax
push 0x55b7ac
push edi
call fcn.00433540
add esp, 0x1c
jmp 0x45a821
cmp si, word [esp + 0x20]
ja 0x45a802
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 0x45a2e8
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a58f
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a594
mov eax, 0x55b450
movzx esi, si
push esi
push eax
push 0x55b7ec
push edi
call fcn.00433790
add esp, 0x10
push 1
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x45a5e4
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041d6d0
push eax
push 0x55b73c
push edi
call fcn.00433540
add esp, 0x18
jmp 0x45a821
mov eax, dword [edi + 0x18]
test eax, eax
je 0x45a5fb
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a600
mov eax, 0x55b450
push esi
push eax
push 0x55b820
push edi
call fcn.00433790
push 0x2f
lea eax, [esp + 0xd4]
push eax
push ebp
call fcn.0043d450
mov ebp, dword [esp + 0x34]
add esp, 0x1c
cmp byte [ebp + 0x251], 0
jne 0x45a63d
cmp byte [ebp + 0x24c], 0
je 0x45a63d
mov byte [ebp + 0x251], 1
lea eax, [esp + 0x28]
push eax
push 1
push ebp
push edi
call fcn.00465770
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x45a821
mov dword [esp + 0x28], 0xffffffff
cmp ebx, 2
je 0x45a6be
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x40]
cmp byte [ebp + 0x251], 0
jne 0x45a681
test ebx, ebx
je 0x45a6b8
cmp ebx, 1
jne 0x45a68c
cmp cx, 2
jne 0x45a6b8
movzx eax, cx
sub eax, 2
je 0x45a699
sub eax, 0x15
jne 0x45a6b8
push dword [esp + 0x42]
call esi
movzx ebp, ax
test ebx, ebx
je 0x45a781
cmp ebx, 1
je 0x45a6f3
mov cx, word [esp + 0x40]
mov ebp, dword [esp + 0x18]
inc ebx
cmp ebx, 2
jne 0x45a674
mov esi, dword [esp + 0x30]
mov dword [esi + 0xa0], ebx
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x49e], 0x1c
je 0x45a7f1
test esi, esi
je 0x45a7d7
movzx eax, byte [esi + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a7dc
lea edx, [esp + 0x124]
mov edi, 0x2c
lea esi, [esp + 0xc0]
mov cl, byte [esi]
test cl, cl
je 0x45a71d
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x45a706
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.00438840
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.0046ed50
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45a6c2
push ecx
call fcn.0041d840
push eax
push 0x55b888
push edi
call fcn.00433540
add esp, 0x10
jmp 0x45a7f8
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.0046ed50
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45a6c2
push ecx
call fcn.0041d840
push eax
push 0x55b85c
push edi
call fcn.00433540
add esp, 0x10
jmp 0x45a7f8
mov eax, 0x55b450
push dword [0x55b248]
push eax
push 0x55b454
push edi
call fcn.00433790
add esp, 0x10
mov byte [esi + 0x49e], 0x1c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x45a866
jmp 0x45a821
push 0x55b7c8
push edi
call fcn.00433540
add esp, 8
jmp 0x45a821
push esi
push 0x55b708
push edi
call fcn.00433540
add esp, 0xc
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x49e], 0
je 0x45a85b
test esi, esi
je 0x45a841
movzx eax, byte [esi + 0x49e]
mov eax, dword [eax*4 + 0x55b1d8]
jmp 0x45a846
mov eax, 0x55b450
push dword [0x55b1d8]
push eax
push 0x55b454
push edi
call fcn.00433790
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov byte [esi + 0x49e], 0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x45a883
push eax
push dword [esp + 0x1c]
push edi
call fcn.00465990
mov eax, dword [esp + 0x38]
add esp, 0xc
jmp 0x45a885
mov eax, ecx
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x660
ret