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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x100353bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
movzx eax, word [esi + 0x180]
mov ebx, dword [esi + 0x43c]
mov edx, dword [esi + 0x184]
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1a0], edx
cmp ebx, ecx
jne 0x10001e46
cmp ax, cx
jne 0x10001e46
xor eax, eax
jmp 0x100021e4
push 0x80
push ecx
lea eax, [ebp - 0x184]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test ebx, ebx
je 0x100020b0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001e68
sub eax, edx
mov ecx, 0xff
cmp eax, ecx
jae 0x100020b0
push ecx
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call sub.MSVCR100.dll_memset
mov ecx, dword [0x10035320]
mov eax, ecx
add esp, 0xc
and dword [ebp - 0x19c], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001ea9
sub eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push eax
push ebx
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x10001f36
mov eax, dword [0x10035320]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ecc
sub eax, edx
add ebx, eax
mov dword [ebp - 0x19c], 1
mov edi, dword [ebp - 0x198]
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [edi + 0x88]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sym.libcurl.dll_curl_pushheader_byname
xor ecx, ecx
add esp, 0x18
sub eax, ecx
je 0x10001f83
dec eax
je 0x10001f7b
dec eax
jne 0x10001f9f
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x1003566c
push esi
call fcn.1001e3ce
add esp, 0x14
jmp 0x1000204b
mov ecx, dword [0x10035324]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x190], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001f47
sub eax, dword [ebp - 0x190]
push eax
push ebx
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x10001ee1
mov eax, dword [0x10035324]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001f68
mov edi, dword [ebp - 0x198]
sub eax, edx
add ebx, eax
jmp 0x10001fab
xor eax, eax
inc eax
jmp 0x100021e4
cmp dword [ebp - 0x19c], ecx
je 0x10001fab
push ebx
push 0x1003564c
push esi
call fcn.1001e441
add esp, 0xc
jmp 0x100021e1
cmp dword [ebp - 0x19c], ecx
jne 0x100020a5
cmp dword [ebp + 0xc], 2
mov eax, dword [edi + 0x448]
mov dword [ebp - 0x190], eax
jne 0x10001fc7
mov dword [edi + 0x448], 1
lea eax, [ebp - 0x18c]
push eax
push 0
push ebx
push edi
call fcn.1000e7d4
add esp, 0x10
cmp eax, 1
jne 0x10001fee
lea eax, [ebp - 0x18c]
push eax
push edi
call fcn.100012e5
pop ecx
pop ecx
mov eax, dword [ebp - 0x190]
mov dword [edi + 0x448], eax
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x100020a5
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.1000e4ed
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
push ebx
push 0x1003561c
push esi
call fcn.1001e3ce
push dword [ebp - 0x18c]
push esi
call fcn.1000ec32
add esp, 0x2c
cmp dword [ebp + 0xc], 2
jne 0x10002094
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.10015423
add esp, 0xc
test eax, eax
jle 0x10002094
push 2
pop eax
push dword [ebp - 0x188]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov dword [ebp - 0x194], 0x10
mov edi, dword [ebp - 0x198]
mov ebx, dword [sym.imp.WS2_32.dll_bind]
jmp 0x1000212b
push ebx
push 0x10035604
jmp 0x10001f91
cmp dword [ebp + 0xc], 2
jne 0x1000209a
push 2
pop eax
push dword [ebp - 0x188]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov dword [ebp - 0x194], 0x10
jmp 0x1000209a
dec dword [ebp - 0x1a0]
cmp dword [ebp - 0x1a0], 0
jle 0x100021bc
movzx eax, word [ebp - 0x188]
push eax
push 0x100355d8
push esi
call fcn.1001e3ce
add esp, 0xc
inc dword [ebp - 0x188]
cmp word [ebp - 0x184], 2
jne 0x1000212b
push dword [ebp - 0x188]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x182], ax
push dword [ebp - 0x194]
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
js 0x100020df
mov eax, 0x80
push eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x84]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x10002197
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
push ebx
push edi
mov dword [esi + 0x473c], ebx
call fcn.1002396e
push eax
push ebx
push 0x100355b0
jmp 0x100021d8
movzx eax, word [ebp - 0x188]
push eax
push 0x1003559c
push esi
call fcn.1001e3ce
add esp, 0xc
mov dword [edi + 0x404], 1
jmp 0x10001e3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
push ebx
push edi
mov dword [esi + 0x473c], ebx
call fcn.1002396e
push eax
push ebx
push 0x1003557c
push esi
call fcn.1001e441
add esp, 0x18
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033b66
leave
ret