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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
push ebx
push esi
push edi
call fcn.1004f3e2
test eax, eax
jge 0x1005ae83
push 0x3e8
push 2
push 6
call fcn.100595dc
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1005ae7a
push 0x66b
push 0x1001b488
push 0x1a
call fcn.100571a6
add esp, 0xc
mov eax, 0xc800100f
jmp 0x1005b485
push eax
call fcn.1004f3bd
add esp, 4
push 1
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
test eax, eax
je 0x1005aea1
mov eax, 0xc800100f
jmp 0x1005b485
push 0x10038f20
call fcn.1005c307
add esp, 4
mov edi, dword [ebp + 0x18]
cmp dword [edi], 0
je 0x1005af14
push 0xe
call fcn.100409b0
add esp, 4
mov esi, eax
test esi, esi
je 0x1005af6c
mov word [esi], 6
call fcn.1004f455
push eax
call fcn.100596da
mov word [esi + 0xc], ax
add esp, 4
lea eax, [ebp - 0x30]
push 0
push eax
push dword [edi]
call fcn.1005c2a9
add esp, 0xc
lea ecx, [ebp - 0x30]
add edi, 4
push esi
push ecx
call fcn.1005c23f
add esp, 8
push esi
push 0x10038f20
call fcn.1005c312
add esp, 8
cmp dword [edi], 0
jne 0x1005aeb6
cmp dword [0x1001b468], 0
je 0x1005b038
push 0x10038e50
call fcn.1005c307
add esp, 4
push 0xe
call fcn.100409b0
add esp, 4
mov edi, eax
test edi, edi
jne 0x1005af9a
push 0x69e
push 0x1001b488
push 0x12
call fcn.100571a6
add esp, 0xc
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, 0xc800100f
jmp 0x1005b485
push 0x686
push 0x1001b488
push 0x12
call fcn.100571a6
add esp, 0xc
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, 0xc800100f
jmp 0x1005b485
push 0xe
xor esi, esi
push esi
push edi
call fcn.10068ed0
mov word [edi], 6
add esp, 0xc
call fcn.1004f455
push eax
call fcn.100596da
mov word [edi + 0xc], ax
add esp, 4
lea eax, [edi + 2]
push 4
push esi
push eax
call fcn.10068ed0
add esp, 0xc
lea eax, [edi + 6]
push 6
push 0xff
push eax
call fcn.10068ed0
add esp, 0xc
push edi
push 0x10038e50
call fcn.1005c312
add esp, 8
mov eax, dword [0x10038e50]
push eax
call fcn.1005c2bc
add esp, 4
test eax, eax
je 0x1005b02e
push 0x6ac
push 0x1001b488
push 0x38
call fcn.100571a6
add esp, 0xc
push esi
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, 0xc800100f
jmp 0x1005b485
mov dword [0x1001b468], 0
push 0
call fcn.10045250
add esp, 4
test eax, eax
jge 0x1005b050
mov eax, 0xc800100f
jmp 0x1005b485
push 0
call fcn.10045250
cdq
add esp, 4
xor eax, edx
mov dword [ebp - 0x548], 0xffffffff
sub eax, edx
push 0x400
and eax, 0x1fff
push 0
mov dword [ebp - 0x54c], 0
xor eax, edx
sub eax, edx
mov dword [ebp - 0x550], eax
lea eax, [ebp - 0x544]
push eax
call fcn.10068ed0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1004d620
add esp, 4
inc eax
lea edx, [ebp - 0x544]
xor esi, esi
push eax
push dword [ebp + 0xc]
push edx
call fcn.100691f0
add esp, 0xc
mov edi, dword [0x10038e50]
push edi
call fcn.1005c2bc
add esp, 4
test eax, eax
jne 0x1005b1ac
push edi
call fcn.1005c2c6
add esp, 4
mov ebx, eax
movzx eax, word [ebx + 0xc]
push eax
push ebx
call fcn.10055e66
add esp, 4
movsx ecx, word [ebx]
push eax
push ecx
push 0x1001b508
call fcn.1005b4a7
add esp, 0x10
lea ecx, [ebp - 0x550]
push 0x10
push ebx
push 0
push 0x40c
push ecx
call fcn.1004f3e2
push eax
call fcn.1005966e
add esp, 0x18
cmp eax, 0x40c
jne 0x1005b124
inc esi
jmp 0x1005b190
mov dword [ebp - 0x14], 0xe
push 0x6e2
push 0x1001b488
push 0x34
call fcn.100571a6
add esp, 0xc
push 0x10
call fcn.100409b0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1005b206
mov word [ebx], 6
call fcn.1004f455
push eax
call fcn.100596da
mov word [ebx + 0xc], ax
add esp, 4
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1004f3e2
push eax
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x1005b234
push ebx
push 0x10038f20
call fcn.1005c312
add esp, 8
push edi
call fcn.1005c2e6
add esp, 4
mov edi, eax
push edi
call fcn.1005c2bc
add esp, 4
test eax, eax
je 0x1005b0d0
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov ebx, dword [0x10038f20]
push ebx
call fcn.1005c2bc
add esp, 4
test eax, eax
jne 0x1005b296
mov edi, 0x40c
push ebx
call fcn.1005c2c6
add esp, 4
lea ecx, [ebp - 0x550]
mov dword [ebp - 0x14], eax
push 0x10
push eax
push 0
push edi
push ecx
call fcn.1004f3e2
push eax
call fcn.1005966e
add esp, 0x18
cmp eax, edi
jne 0x1005b25b
inc esi
jmp 0x1005b26f
push 0x6e5
push 0x1001b488
push 0x12
call fcn.100571a6
add esp, 0xc
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, 0xc800100f
jmp 0x1005b485
push 0x6ed
push 0x1001b488
push 0x16
call fcn.100571a6
add esp, 0xc
push ebx
call fcn.100409c0
add esp, 4
mov eax, 0xc800100f
jmp 0x1005b485
push 0x703
push 0x1001b488
push 0x34
call fcn.100571a6
add esp, 0xc
push dword [ebp - 0x14]
call fcn.100409c0
add esp, 4
push ebx
call fcn.1005c2e6
add esp, 4
mov ebx, eax
push ebx
call fcn.1005c2bc
add esp, 4
test eax, eax
je 0x1005b1d8
push 0
test esi, esi
jne 0x1005b2c8
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
push 0x709
push 0x1001b488
push 0x34
call fcn.100571a6
add esp, 0xc
mov eax, 0xc800100f
jmp 0x1005b485
xor esi, esi
call fcn.10045250
add esp, 4
add eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push edi
mov dword [ebp - 4], edi
call fcn.10045250
add esp, 4
sub ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, edi
jge 0x1005b2f5
mov dword [ebp - 8], edi
mov dword [ebp - 0x144], edi
call fcn.1004f3e2
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 8]
inc dword [ebp - 0x144]
push eax
push edi
push edi
push ecx
call fcn.1004f3e2
inc eax
push eax
call fcn.10059608
add esp, 0x14
cmp eax, 0xffffffff
je 0x1005b412
test eax, eax
je 0x1005b456
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x40]
push eax
lea edx, [ebp - 0x95c]
mov dword [ebp - 0xc], 0xe
push ecx
push edi
push 0x40c
push edx
call fcn.1004f3e2
push eax
call fcn.100596a4
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1005b381
push 0x734
push 0x1001b488
push 0x35
call fcn.100571a6
add esp, 0xc
jmp 0x1005b45b
mov eax, dword [ebp - 0x550]
cmp dword [ebp - 0x95c], eax
jne 0x1005b3de
mov eax, dword [ebp - 0x548]
cmp dword [ebp - 0x954], eax
jne 0x1005b3de
lea eax, [ebp - 0x40]
push eax
call fcn.10055e66
add esp, 4
lea edx, [ebp - 0x950]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 2
push dword [ebp + 0x14]
push eax
push edx
push dword [ebp + 0x18]
call fcn.1005abd8
add esp, 0x20
mov dword [ebp - 0x14], eax
cmp eax, 0xc8001007
je 0x1005b48c
cmp eax, edi
jne 0x1005b45b
jmp 0x1005b456
push dword [ebp - 0x550]
push dword [ebp - 0x95c]
push 0x1001b4cc
call fcn.1005b4a7
add esp, 0xc
push dword [ebp - 0x548]
push dword [ebp - 0x954]
push 0x1001b494
call fcn.1005b4a7
add esp, 0xc
jmp 0x1005b45b
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x1005b45b
push 0x71c
push 0x1001b488
push 0x3c
call fcn.100571a6
add esp, 0xc
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
mov eax, 0
jg 0x1005b485
mov eax, 1
jmp 0x1005b485
mov esi, 1
test esi, esi
je 0x1005b2da
push 0
call fcn.1004f3e2
push eax
call fcn.1005c202
add esp, 8
mov eax, 0xc800100f
cmp dword [ebp - 0x14], eax
jne 0x1005b483
test byte [ebp + 0x14], 1
jne 0x1005b485
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x757
push 0x1001b488
push 0x12
call fcn.100571a6
add esp, 0xc
mov eax, 0xc800100f
jmp 0x1005b485