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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009a26d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100cc5b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100cc5b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x34], eax
call fcn.1007d8c0
xor edi, edi
push 6
inc edi
push edi
push 2
lea esi, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.1003d99c
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
and dword [esp + 0x58], 0
cmp ebx, 0xffffffff
jne 0x1003de8e
cmp dword [esp + 0x14], 0
je 0x1003de8e
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.10029da4
push 4
pop edx
push edx
lea eax, [esp + 0x30]
push eax
push 0xffff
push ebx
lea ecx, [esp + 0x24]
lea eax, [esp + 0x23]
mov dword [esp + 0x3c], edi
mov byte [esp + 0x23], 0
call fcn.1003da09
xor eax, eax
lea edi, [esp + 0x48]
stosd dword es:[edi], eax
add esp, 0x10
stosd dword es:[edi], eax
push 0x10
pop esi
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push str.127.0.0.1
mov dword [esp + 0x2c], esi
mov word [esp + 0x3c], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp ebx, 0xffffffff
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov word [esp + 0x3a], ax
jne 0x1003df0a
call fcn.1007d8c0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x1003df56
push 0
call edi
push esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x1c], eax
call fcn.1007d8c0
mov dword [esp + 0x24], eax
call ebx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jne 0x1003df4f
call fcn.1007d8c0
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x1003df66
cmp dword [esp + 0x14], 0
je 0x1003df66
lea eax, [esp + 0x14]
jmp 0x1003de83
cmp dword [esp + 0x20], 0xffffffff
jne 0x1003df81
call fcn.1007d8c0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x1003dfd6
push 0
call edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x28], esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.1007d8c0
mov esi, eax
call ebx
mov dword [esp + 0x18], esi
xor esi, esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], esi
jne 0x1003dfcf
call fcn.1007d8c0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], 0xffffffff
jne 0x1003dfe6
cmp dword [esp + 0x14], 0
je 0x1003dfe6
lea eax, [esp + 0x14]
jmp 0x1003de83
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x1003e010
call fcn.1007d8c0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x1003e054
push 0
call edi
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
mov dword [esp + 0x24], eax
call fcn.1007d8c0
mov esi, eax
call ebx
mov dword [esp + 0x18], esi
xor esi, esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], esi
jne 0x1003e04d
call fcn.1007d8c0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], 0xffffffff
jne 0x1003e064
cmp dword [esp + 0x14], 0
je 0x1003e064
lea eax, [esp + 0x14]
jmp 0x1003de83
push 6
push 1
push 2
lea esi, [esp + 0x20]
call fcn.1003d99c
add esp, 0xc
mov dword [esp + 0x1c], eax
xor esi, esi
mov byte [esp + 0x58], 1
cmp eax, 0xffffffff
jne 0x1003e095
cmp dword [esp + 0x14], esi
je 0x1003e095
lea eax, [esp + 0x14]
jmp 0x1003de83
push dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push eax
lea eax, [esp + 0x20]
call fcn.1003d8c8
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1003e0bf
cmp dword [esp + 0x14], esi
je 0x1003e0bf
lea eax, [esp + 0x14]
jmp 0x1003de83
cmp dword [esp + 0x20], 0xffffffff
jne 0x1003e0d9
call fcn.1007d8c0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
or edi, 0xffffffff
jmp 0x1003e117
push esi
call edi
push esi
push esi
push dword [esp + 0x28]
mov dword [esp + 0x30], esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0x28], eax
call fcn.1007d8c0
mov edi, eax
call ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp edi, 0xffffffff
jne 0x1003e10e
or edi, edi
jmp 0x1003e11b
call fcn.1007d8c0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x58], 2
cmp edi, 0xffffffff
jne 0x1003e138
cmp dword [esp + 0x14], esi
je 0x1003e138
lea eax, [esp + 0x14]
jmp 0x1003de83
lea eax, [esp + 0x13]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 1
mov byte [esp + 0x1b], 0
call fcn.1003dab0
pop ecx
pop ecx
test eax, eax
je 0x1003e171
cmp dword [esp + 0x14], 0
je 0x1003e171
lea eax, [esp + 0x14]
jmp 0x1003de83
push 4
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
inc ebx
push 6
push dword [esp + 0x28]
lea ecx, [esp + 0x24]
mov edx, ebx
lea eax, [esp + 0x23]
mov dword [esp + 0x3c], ebx
call fcn.1003da09
lea eax, [esp + 0x23]
push eax
mov dword [esp + 0x44], ebx
push edi
lea eax, [esp + 0x2c]
lea ebx, [esp + 0x48]
mov byte [esp + 0x2b], 0
call fcn.1003dab0
add esp, 0x18
test eax, eax
je 0x1003e1c7
cmp dword [esp + 0x14], 0
je 0x1003e1c7
lea eax, [esp + 0x14]
jmp 0x1003de83
push 4
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
inc ebx
push 6
push edi
lea ecx, [esp + 0x24]
mov edx, ebx
lea eax, [esp + 0x23]
mov dword [esp + 0x3c], ebx
call fcn.1003da09
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
or dword [esp + 0x38], 0xffffffff
or dword [esp + 0x2c], 0xffffffff
add esp, 0x10
lea esi, [esp + 0x28]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov byte [esp + 0x58], bl
call fcn.1003ddda
lea esi, [esp + 0x1c]
mov byte [esp + 0x58], 0
call fcn.1003ddda
or dword [esp + 0x58], 0xffffffff
lea esi, [esp + 0x20]
call fcn.1003ddda
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1005c747
mov esp, ebp
pop ebp
ret 4