Function at 0x46d1c0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x628
mov eax, dword [0x4a4080]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
mov ebp, dword [esp + 0x634]
push esi
push edi
mov edi, dword [esp + 0x640]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
add eax, 0x3d0
push 0x2f
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc0]
push 0
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0x538]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], eax
test esi, esi
je 0x46d43d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d244
sub ecx, edx
cmp ecx, 1
jbe 0x46d43d
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d260
sub ecx, edx
cmp ecx, 0x41
jae 0x46d275
mov ecx, 0x41
jmp 0x46d289
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d280
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x4a402c]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46d2a8
lea ebx, [eax + 0x1b]
jmp 0x46d8f5
mov al, byte [esi]
cmp al, 0x5b
jne 0x46d2cc
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46d391
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
jmp 0x46d319
cmp al, 0x3a
jne 0x46d2d4
mov ebx, esi
jmp 0x46d326
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46d37e
lea eax, [esp + 0x3c]
push eax
push esi
push 0x17
call fcn.00476120
add esp, 0xc
cmp eax, 1
jne 0x46d313
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x46d304
jmp 0x46d391
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
push 0x3a
push ebx
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x46d395
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.0043a2e0
push 0x2d
push ebx
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x46d37a
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.0043a2e0
add esp, 0x10
movzx edx, ax
jmp 0x46d395
mov edx, esi
jmp 0x46d395
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x46d384
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, si
movzx ebx, cx
xor ecx, ecx
cmp si, dx
cmovbe ecx, eax
mov eax, dword [esp + 0x18]
movzx esi, cx
cmp byte [eax], 0
je 0x46d431
push 0x401
lea ecx, [esp + 0x234]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x4ac]
mov eax, dword [eax + 0x40]
push dword [eax + 0x18]
call fcn.00475ce0
add esp, 4
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x40]
push dword [eax + 4]
call fcn.004415b0
add esp, 0x18
sub eax, 0
je 0x46d413
sub eax, 1
je 0x46d8f0
sub eax, 1
jne 0x46d41d
lea eax, [esp + 0x230]
mov dword [esp + 0x30], eax
jmp 0x46d41f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jmp 0x46d41f
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
test eax, eax
jne 0x46d4e0
jmp 0x46d43d
mov eax, esi
mov dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46d490
push 0x100
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00435db0
push eax
push 0x498228
push ebp
call fcn.0044b720
add esp, 0x18
jmp 0x46d8f0
mov ax, word [esp + 0x3c]
cmp ax, 0x17
je 0x46d4a4
lea ecx, [esp + 0x40]
movzx eax, ax
jmp 0x46d4ad
lea ecx, [esp + 0x44]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x234]
movzx eax, ax
push edx
push ecx
push eax
call fcn.00475da0
add esp, 0x10
test eax, eax
je 0x46d8f0
lea eax, [esp + 0x230]
xor cl, cl
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push eax
push ebp
call fcn.00453ec0
add esp, 0x14
cmp eax, 1
jne 0x46d506
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.004417a0
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46d8dd
mov ebx, dword [eax]
push eax
push ebp
call fcn.004543c0
add esp, 8
test ebx, ebx
je 0x46d8dd
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax]
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push ebp
call fcn.0044d160
add esp, 0x10
test eax, eax
je 0x46d575
call esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x46d530
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.00435db0
push eax
push 0x498278
push ebp
call fcn.0044b720
add esp, 0x18
jmp 0x46d8f0
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 + 0x1c], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x24]
ja 0x46d8cd
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x1c]
movzx eax, ax
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 0x46d6bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x17]
test cl, cl
je 0x46d643
cmp eax, 0x2741
jne 0x46d643
push 0x100
lea eax, [esp + 0x134]
push eax
push 0x2741
call fcn.00435db0
push eax
movzx eax, si
push eax
push 0x49828c
push ebp
call fcn.0044b7f0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
add esp, 0x1c
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46d65e
mov eax, dword [esp + 0x28]
xor cl, cl
movzx esi, ax
mov byte [esp + 0x17], cl
jmp 0x46d5a1
cmp eax, 0x2740
je 0x46d64f
cmp eax, 0xd
jne 0x46d690
inc esi
mov byte [esp + 0x17], cl
movzx eax, si
mov esi, eax
jmp 0x46d596
push 0x100
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00435db0
push eax
push 0x498228
push ebp
call fcn.0044b720
add esp, 0x18
mov ebx, 0x1e
jmp 0x46d8f9
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.00435db0
push eax
movzx eax, si
push eax
push 0x4982bc
push ebp
call fcn.0044b720
add esp, 0x1c
jmp 0x46d8f0
cmp si, word [esp + 0x24]
ja 0x46d8cd
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 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 0x46d463
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x46d727
push 0x100
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00435db0
push eax
push 0x498278
push ebp
call fcn.0044b720
add esp, 0x18
jmp 0x46d8f0
push 0x2f
lea eax, [esp + 0xc0]
push eax
push ebx
call fcn.00453e70
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x20a], 0
jne 0x46d757
cmp byte [eax + 0x204], 0
je 0x46d757
mov byte [eax + 0x20a], 1
cmp edi, 2
je 0x46d7b1
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
cmp byte [eax + 0x20a], 0
jne 0x46d774
test edi, edi
je 0x46d7ab
cmp edi, 1
jne 0x46d77f
cmp cx, 2
jne 0x46d7ab
movzx eax, cx
sub eax, 2
je 0x46d78c
sub eax, 0x15
jne 0x46d7a7
push dword [esp + 0x3e]
call esi
movzx ebx, ax
test edi, edi
je 0x46d87b
cmp edi, 1
je 0x46d7f1
mov cx, word [esp + 0x3c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x46d767
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x20]
mov dword [esi + 0x78], edi
mov esi, dword [esp + 0x10]
push eax
push 1
push esi
push ebp
call fcn.0044c8e0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x46d8f9
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], 0xffffffff
mov dword [eax + 0x454], 0x1c
jmp 0x46d906
lea edx, [esp + 0xec]
mov ebp, 0x2c
lea esi, [esp + 0xbc]
mov cl, byte [esi]
test cl, cl
je 0x46d81b
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add esi, 1
jne 0x46d804
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push 0x498330
push 0x14
push edx
mov byte [edx], 0
call fcn.0043a470
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x100]
mov ebp, dword [esp + 0x4c]
push eax
push 0x497f7d
push 0x497b0c
push esi
push ebp
call fcn.004816f0
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x46d7b5
push ebx
call fcn.00435f20
push eax
push 0x498338
push ebp
call fcn.0044b720
add esp, 0x10
jmp 0x46d8f5
mov esi, dword [esp + 0x2c]
movzx eax, bx
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push 0x497f78
push 0x4982fc
push esi
push ebp
call fcn.004816f0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x46d7b5
push ebx
call fcn.00435f20
push eax
push 0x49830c
push ebp
call fcn.0044b720
add esp, 0x10
jmp 0x46d8f5
push 0x4982d8
push ebp
call fcn.0044b720
add esp, 8
jmp 0x46d8f0
mov eax, dword [esp + 0x30]
push eax
push 0x498244
push ebp
call fcn.0044b720
add esp, 0xc
mov ebx, 0x1e
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x454], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x46d91a
push eax
push esi
push ebp
call fcn.0044c860
add esp, 0xc
push dword [esp + 0x18]
call dword [0x4a4020]
mov ecx, dword [esp + 0x638]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00486b00
add esp, 0x628
ret