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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [edi + 0x94]
neg ebp
sbb ebp, ebp
xor esi, esi
push ebx
add ebp, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x10
call fcn.00428220
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x426693
call fcn.0043099b
mov edx, dword [eax]
push edx
call fcn.004308f9
push eax
push str.add_socket:__s
push esi
push ebp
call fcn.004279b0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1c
ret
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4266e5
push eax
call dword [fcn.0045c4c0]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4266e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004308f9
push eax
push str.add_socket:_SSL_new:__s
push 0
push ebp
call fcn.004279b0
add esp, 0x14
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1c
ret
mov esi, eax
cmp dword [edi + 0x20], 0
je 0x42673b
push ebx
push esi
call dword [fcn.0045c4b0]
add esp, 8
test eax, eax
jne 0x42673b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004308f9
push eax
push str.add_socket:_SSL_set_fd:__s
push 0
push ebp
call fcn.004279b0
add esp, 0x14
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [fcn.0045c450]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1c
ret
mov eax, dword [edi + 0x90]
lea ecx, [eax + eax + 0x160]
push ecx
push 1
call fcn.0042dba6
mov esi, eax
add esp, 8
test esi, esi
jne 0x4267a2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42676b
push eax
call dword [fcn.0045c450]
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004308f9
push eax
push str.add_socket:_calloc:__s
push 0
push ebp
call fcn.004279b0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1c
ret
add dword [edi + 0xc], 1
mov dword [esi + 0xc8], esi
mov dword [esi + 0x110], esi
mov dword [esi + 8], edi
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x1c]
lea ebp, [esi + 0x110]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x45fda8]
mov dword [esi + 0x20], ecx
mov edx, dword [0x45fdac]
mov dword [esi + 0x24], edx
mov eax, dword [0x45fda8]
mov ecx, dword [0x45fdac]
add eax, 0xe10
lea edx, [esp + 0x14]
mov dword [esi + 0x28], eax
push edx
lea eax, [esp + 0x1c]
push eax
adc ecx, 0
push ebx
mov dword [esi + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [esp + 0x1a]
push ebx
mov dword [esi + 0x30], ecx
call fcn.00428240
lea eax, [esi + 0x160]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xfc], 0
mov dword [esi + str.socket], 0x4511b8
mov dword [esi + 0x118], ebx
mov edx, dword [edi + 0x90]
add edx, eax
mov dword [esi + 0x130], edx
mov eax, dword [edi + 0x90]
mov dword [esi + 0x134], eax
mov dword [esi + 0xec], eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x426898
push ebp
mov dword [esi + 0x144], 0x45118c
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], eax
call fcn.0042a050
add esp, 4
lea ebx, [edi + 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
mov dword [ecx + 4], esi
mov edx, dword [eax]
mov dword [esi], edx
mov dword [esi + 4], eax
add dword [edi + 8], 1
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c3ca
add esp, 0x1c
ret