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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431efc
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2a8]
push edi
mov edi, dword [esp + 0x2a8]
mov ebx, ecx
push 0xa
xor ebp, ebp
push esi
push edi
mov dword [ebx + 4], ebp
call fcn.00416d90
test eax, eax
jne 0x417136
mov eax, dword [0x43db14]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [esp + 0x2a8], ebp
call fcn.00417870
add esp, 8
mov edx, dword [eax]
push esi
push edx
lea eax, [esp + 0x20]
push 0x43d5d8
push eax
mov byte [esp + 0x2b0], 1
call fcn.00427b91
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 0
call fcn.004288f2
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
call fcn.00417790
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.004288f2
xor eax, eax
jmp 0x417407
mov edx, dword [ebx + 0x1008]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
mov dword [esp + 0x2c], 0x10
call sub.WSOCK32.dll_getsockname
mov ebp, dword [esp + 0x2b0]
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov ecx, dword [0x4413dc]
mov dword [ecx + 0x82], eax
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00417d80
mov ecx, dword [esp + 0x18]
push 0xc
lea edx, [ebp + 0xc]
push ecx
push edx
mov dword [esp + 0x2b4], 2
call fcn.0041bf00
mov eax, dword [0x4413dc]
add esp, 0x14
cmp byte [eax + 0x2c199], 1
jne 0x41724a
mov ecx, dword [0x43db14]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x10]
lea esi, [ebp + 0x38]
push edx
push esi
lea eax, [esp + 0x24]
push str.ID_IS_MAC_2____old_s__new_s
push eax
mov byte [esp + 0x2b0], 3
call fcn.00427b91
add esp, 0xc
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
call fcn.00417790
mov ecx, 8
xor eax, eax
mov edi, esi
push 0xc
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.0041bf00
mov edx, dword [0x4413dc]
mov ecx, 8
xor eax, eax
push 0x1e
lea edi, [edx + 0xb2]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, dword [0x4413dc]
mov eax, dword [esp + 0x24]
add ecx, 0xb2
push eax
push ecx
call fcn.0041bf00
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 2
call fcn.004288f2
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, str.CMD_CONN_9
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x38
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0x513
push ecx
mov ecx, ebx
call fcn.00416ff0
cmp eax, 0x38
je 0x4172ca
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._Write_head_failed
call fcn.00428960
call fcn.00417790
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.004288f2
xor eax, eax
jmp 0x417407
or esi, 0xffffffff
mov edi, 0x43c650
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebp
push 0x513
dec ecx
push ebp
push ecx
push 0x43c650
call fcn.0040ef80
mov edx, dword [esp + 0x7c]
add esp, 0x14
mov ecx, ebx
push edx
push ebp
call fcn.00416ff0
cmp eax, dword [esp + 0x68]
je 0x417321
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._Write_param_failed
call fcn.00428960
call fcn.00417790
add esp, 4
jmp 0x4173aa
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x6c]
push 0x65
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.00416f60
cmp eax, 0x65
je 0x41735d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._Read_response_failed
call fcn.00428960
call fcn.00417790
add esp, 4
jmp 0x4173aa
cmp byte [esp + 0x6c], 0x64
je 0x41737f
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._response.iCmd_100
call fcn.00428960
call fcn.00417790
add esp, 4
jmp 0x4173aa
mov ecx, 0x71
xor eax, eax
lea edi, [esp + 0xd4]
push 0x1c4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd8]
push ecx
mov ecx, ebx
call fcn.00416f60
cmp eax, 0x1c4
je 0x4173be
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a0], esi
call fcn.004288f2
xor eax, eax
jmp 0x417407
lea edx, [ebx + 8]
lea eax, [esp + 0xd4]
push edx
push 0x1c4
push eax
mov edi, 0x43c650
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43c650
call fcn.0040ef80
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [ebx + 4], 0x1c4
mov dword [esp + 0x2a0], esi
call fcn.004288f2
mov eax, 1
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x294
ret 0xc