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

Disassembly:
sub esp, 0x98
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov ecx, 0x55bae8
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42bac0
test dl, dl
je 0x42babc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42bac0
add eax, 2
add ecx, 2
test dl, dl
jne 0x42baa0
xor eax, eax
jmp 0x42bac5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42bad3
call sub.MSVCR110.dll___iob_func
lea esi, [eax + 0x20]
jmp 0x42bb23
mov ecx, 0x560568
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42bb00
test dl, dl
je 0x42bafc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42bb00
add eax, 2
add ecx, 2
test dl, dl
jne 0x42bae0
xor eax, eax
jmp 0x42bb05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42bb13
call sub.MSVCR110.dll___iob_func
lea esi, [eax + 0x40]
jmp 0x42bb23
push 0x55d058
push esi
call sub.MSVCR110.dll_fopen
add esp, 8
mov esi, eax
test esi, esi
je 0x42bcfd
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x10
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x30], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
push 0x3c
push dword [esp + 0x24]
mov byte [esp + 0x70], 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x70]
push eax
call sub.MSVCR110.dll_strncpy
add esp, 0xc
push dword [esp + 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0x68]
movzx edx, ax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42bb88
sub ecx, ebx
push edx
push 0x55a670
mov ebx, 0x3b
mov eax, ebx
sub eax, ecx
push str._s:_d
push eax
lea eax, [esp + 0x78]
add eax, ecx
push eax
call sub.MSVCR110.dll__snprintf
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
push dword [eax + 0x10]
mov dword [esp + 0x1c], 0x10
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x30], xmm0
call dword [sym.imp.WS2_32.dll_getpeername]
push 0x3c
push dword [esp + 0x24]
mov byte [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x34]
push eax
call sub.MSVCR110.dll_strncpy
add esp, 0xc
push dword [esp + 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0x2c]
movzx edx, ax
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42bc20
sub ecx, dword [esp + 0x10]
push edx
push 0x55a670
push str._s:_d
sub ebx, ecx
lea eax, [esp + 0x38]
add eax, ecx
push ebx
push eax
call sub.MSVCR110.dll__snprintf
add esp, 0x14
cmp edi, 3
jne 0x42bc54
mov eax, 0x56056c
jmp 0x42bc7c
cmp edi, 4
jne 0x42bc60
mov eax, 0x560570
jmp 0x42bc7c
cmp edi, 1
jne 0x42bc6c
mov eax, 0x560574
jmp 0x42bc7c
mov eax, 0x560578
mov ecx, 0x56057c
cmp edi, 2
cmovne eax, ecx
push ebp
lea ecx, [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x24]
push 0
call sub.MSVCR110.dll__time64
add esp, 4
push eax
push str._lu__p__s__s__s__d_n
push esi
call sub.MSVCR110.dll_fprintf
add esp, 0x20
test ebp, ebp
jle 0x42bcdf
lea ebx, [ebp + 0x14]
lea ebx, [ebx + ebx*4]
push ebx
call sub.MSVCR110.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
je 0x42bcdf
push ebx
push edi
push ebp
push dword [esp + 0x24]
call fcn.0042b8d0
push edi
push 0x55a8e4
push esi
call sub.MSVCR110.dll_fprintf
push edi
call sub.MSVCR110.dll_free
add esp, 0x20
call sub.MSVCR110.dll___iob_func
cmp esi, eax
je 0x42bcfd
call sub.MSVCR110.dll___iob_func
add eax, 0x20
cmp esi, eax
je 0x42bcfd
push esi
call sub.MSVCR110.dll_fclose
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x98
ret