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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x10035448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x990], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 0x998], eax
lea eax, [ebp - 0x103]
push ebx
push eax
mov dword [ebp - 0x994], esi
mov byte [ebp - 0x104], bl
call sub.MSVCR100.dll_memset
lea eax, [esi + 0x44c]
mov esi, dword [eax]
mov dword [ebp - 0x9ac], ebx
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x9a8], ebx
mov dword [ebp - 0x9a4], ebx
mov dword [ebp - 0x9b0], 1
mov dword [ebp - 0x98c], ebx
cmp eax, ebx
je 0x10009164
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008fe7
sub eax, edx
cmp eax, 1
jbe 0x10009164
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008ffe
sub eax, edx
cmp eax, 0x16
jae 0x10009011
push 0x16
pop eax
jmp 0x1000901f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009016
sub eax, edx
inc eax
push 1
push eax
call dword [0x10035338]
pop ecx
pop ecx
mov dword [ebp - 0x98c], eax
test eax, eax
jne 0x1000903d
push 0x1b
pop eax
jmp 0x10009557
cmp byte [esi], 0x3a
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
jne 0x10009050
mov dword [ebp - 0x9a0], esi
jmp 0x1000908a
push 0x3a
push esi
call ebx
pop ecx
pop ecx
mov dword [ebp - 0x9a0], eax
test eax, eax
je 0x10009076
sub eax, esi
push eax
push esi
push dword [ebp - 0x98c]
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
jmp 0x1000908a
mov edx, dword [ebp - 0x98c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10009080
cmp dword [ebp - 0x9a0], 0
je 0x10009111
push 0x3a
push dword [ebp - 0x9a0]
call ebx
pop ecx
pop ecx
mov dword [ebp - 0x9a0], eax
test eax, eax
je 0x10009111
mov esi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
inc eax
push 0
push eax
call esi
push eax
call fcn.1002ecb5
movzx eax, ax
push 0x2d
push dword [ebp - 0x9a0]
mov dword [ebp - 0x9a8], eax
call ebx
add esp, 0x18
test eax, eax
je 0x100090ed
push 0xa
inc eax
push 0
push eax
call esi
push eax
call fcn.1002ecb5
add esp, 0x10
movzx eax, ax
jmp 0x100090f4
movzx eax, word [ebp - 0x9a8]
mov dword [ebp - 0x9a4], eax
cmp word [ebp - 0x9a8], ax
jbe 0x10009111
and dword [ebp - 0x9a4], 0
and dword [ebp - 0x9a8], 0
mov ebx, dword [ebp - 0x98c]
cmp byte [ebx], 0
je 0x1000915a
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [edi + 0x4c]
push ebx
push dword [edi + 0x88]
push dword [eax + 0x18]
call sym.libcurl.dll_curl_pushheader_byname
pop ecx
push eax
mov eax, dword [edi + 0x4c]
push dword [eax + 4]
call sym.libcurl.dll_curl_pushheader_byname
add esp, 0x18
sub eax, 0
je 0x1000915c
dec eax
je 0x100091b9
dec eax
jne 0x10009164
jmp 0x100091ea
xor ebx, ebx
test ebx, ebx
jne 0x100091f0
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [edi + 0x190]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100091c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1002396e
push eax
push 0x10036490
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x98c]
call dword [0x1003532c]
add esp, 0x18
push 0x1e
jmp 0x10009037
push 0x401
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x984]
push eax
movzx eax, word [ebp - 0x988]
push eax
call fcn.10015345
add esp, 0x10
and dword [ebp - 0x9b0], 0
lea ebx, [ebp - 0x508]
lea eax, [ebp - 0x9ac]
push eax
push 0
push ebx
push edi
call fcn.1000e7d4
add esp, 0x10
cmp eax, 1
jne 0x10009217
lea eax, [ebp - 0x9ac]
push eax
push edi
call fcn.100012e5
pop ecx
pop ecx
mov eax, dword [ebp - 0x9ac]
test eax, eax
je 0x10009233
mov esi, dword [eax]
push eax
push dword [ebp - 0x994]
call fcn.1000ec32
pop ecx
pop ecx
jmp 0x10009235
xor esi, esi
test esi, esi
jne 0x1000925e
push ebx
push 0x1003645c
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x98c]
call dword [0x1003532c]
add esp, 0x10
jmp 0x100091b9
push dword [ebp - 0x98c]
call dword [0x1003532c]
or dword [ebp - 0x990], 0xffffffff
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x990]
push eax
push 0
push esi
push edi
call fcn.10002681
add esp, 0x10
mov dword [ebp - 0x98c], eax
test eax, eax
je 0x100092a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov ebx, eax
test esi, esi
jne 0x10009274
test esi, esi
jne 0x100092c4
push ebx
push edi
call fcn.1002396e
push eax
push 0x10036448
push dword [ebp - 0x994]
call fcn.1001e441
add esp, 0x14
jmp 0x100091b9
push dword [esi + 0x10]
lea eax, [ebp - 0x988]
push dword [esi + 0x18]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x99c], eax
mov eax, dword [ebp - 0x9a8]
add esp, 0xc
movzx ebx, ax
cmp ax, word [ebp - 0x9a4]
ja 0x100093c4
cmp word [ebp - 0x988], 2
jne 0x10009310
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x986], ax
push dword [ebp - 0x99c]
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100093b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x9b0], 0
je 0x1000939d
cmp eax, 0x2741
jne 0x1000939d
push eax
push edi
call fcn.1002396e
push eax
movzx eax, bx
push eax
push 0x10036418
push dword [ebp - 0x994]
call fcn.1001e3ce
add esp, 0x18
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [edi + 0x190]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100093e5
movzx ebx, word [ebp - 0x9a8]
and dword [ebp - 0x9b0], eax
jmp 0x100093aa
cmp eax, 0x2740
je 0x100093a9
cmp eax, 0xd
jne 0x10009417
inc ebx
cmp bx, word [ebp - 0x9a4]
jbe 0x100092f8
cmp bx, word [ebp - 0x9a4]
jbe 0x10009447
push 0x100363f4
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x990]
push edi
call fcn.1000262c
jmp 0x10009256
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1002396e
push eax
push 0x10036490
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x990]
push edi
call fcn.1000262c
add esp, 0x1c
jmp 0x100091b9
push eax
push edi
call fcn.1002396e
push eax
movzx eax, bx
push eax
push 0x100363d8
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x990]
push edi
call fcn.1000262c
add esp, 0x20
jmp 0x100091b9
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x990]
mov dword [ebp - 0x99c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100093e5
push 1
push dword [ebp - 0x990]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1000949d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1002396e
push eax
push 0x10036448
jmp 0x100093f8
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.1000e4ed
add esp, 0xc
cmp dword [ebp - 0x998], 2
je 0x10009520
push 2
pop ebx
cmp dword [edi + 0x3ec], 0
jne 0x100094d0
cmp dword [ebp - 0x998], 0
je 0x10009512
cmp dword [ebp - 0x998], 1
jne 0x100094e2
cmp word [ebp - 0x988], bx
jne 0x10009512
movzx eax, word [ebp - 0x988]
sub eax, ebx
jne 0x10009512
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
cmp dword [ebp - 0x998], 0
movzx esi, ax
je 0x10009566
cmp dword [ebp - 0x998], 1
je 0x100095d3
inc dword [ebp - 0x998]
cmp dword [ebp - 0x998], ebx
jne 0x100094be
mov eax, dword [ebp - 0x998]
mov dword [edi + 0x6f0], eax
call fcn.10008bf7
mov eax, dword [ebp - 0x990]
push 0x1c
mov dword [edi + 0x194], eax
mov dword [edi + 0x3d0], 1
pop eax
mov ecx, edi
call fcn.10008e66
mov eax, dword [ebp - 0x98c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033b66
leave
ret
push esi
lea eax, [ebp - 0x104]
push eax
xor eax, eax
cmp word [ebp - 0x988], bx
lea esi, [edi + 0x688]
setne al
inc eax
push eax
push 0x10036224
push 0x100363c8
push esi
call fcn.1001a636
add esp, 0x18
mov dword [ebp - 0x98c], eax
test eax, eax
je 0x10009520
push eax
call sym.libcurl.dll_curl_easy_strerror
push eax
push 0x100363a4
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x990]
push edi
call fcn.1000262c
add esp, 0x18
mov dword [esi + 0x68], 1
xor eax, eax
jmp 0x1000954a
lea ecx, [ebp - 0x908]
lea edx, [ebp - 0x104]
mov al, byte [edx]
test al, al
je 0x100095f4
cmp al, 0x2e
jne 0x100095ee
mov byte [ecx], 0x2c
jmp 0x100095f0
mov byte [ecx], al
inc ecx
inc edx
jne 0x100095df
mov eax, esi
mov edx, esi
and edx, 0xff
push edx
shr eax, 8
push eax
push 0x1003639c
push 0x14
push ecx
mov byte [ecx], 0
call sym.libcurl.dll_curl_msnprintf
lea eax, [ebp - 0x908]
push eax
push 0x10036229
lea eax, [edi + 0x688]
push 0x10036394
push eax
call fcn.1001a636
mov esi, eax
add esp, 0x24
mov dword [ebp - 0x98c], esi
test esi, esi
je 0x10009520
push esi
call sym.libcurl.dll_curl_easy_strerror
push eax
push 0x10036370
push dword [ebp - 0x994]
call fcn.1001e441
push dword [ebp - 0x990]
push edi
call fcn.1000262c
add esp, 0x18
xor eax, eax
mov ecx, edi
call fcn.10008e66
mov eax, esi
jmp 0x10009557