Function at 0x10003310
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x10012020]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x350]
push str.127.0.0.1
call ebx
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call fcn.10001090
mov eax, dword [edi + 0x350]
mov edx, dword [eax + 4]
push 0
push 0
push 0
push 0
push 0x10
lea ecx, [eax + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
push 0x2c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.10008d90
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x350]
mov dword [esp + 0x18], ecx
mov eax, dword [edx]
add esp, 0xc
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0x14], 0
mov dword [edi + 0x354], eax
jne 0x100035ef
push 0x7d0
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x100035ef
cmp eax, 0x102
je 0x100035de
cmp eax, 0xffffffff
jne 0x10003475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10002720
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [edi + 0x350]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10003419
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esi]
test eax, eax
je 0x1000342c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov esi, dword [edi + 0x350]
push str.127.0.0.1
call ebx
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call fcn.10001090
mov eax, dword [edi + 0x350]
mov edx, dword [eax + 4]
push 0
push 0
push 0
push 0
push 0x10
lea ecx, [eax + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov eax, dword [edi + 0x350]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x100035e5
cmp eax, 1
jne 0x100035de
push 0x2c
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.10008d90
mov eax, dword [edi + 0x350]
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x28], 0x10
je 0x10003520
xor eax, eax
xor ecx, ecx
mov word [esp + 0x18], cx
mov ecx, dword [edi + 0x350]
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x10
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov ecx, 0x2397
cmp ax, cx
jne 0x10003508
push ecx
jmp 0x100033d8
cmp dword [esp + 0x3c], 0
jne 0x1000355d
mov esi, edi
mov dword [edi + 0x35c], 1
call fcn.100039b0
test byte [esp + 0x28], 1
je 0x100035b9
cmp dword [esp + 0x2c], 0
jne 0x100035b9
mov esi, edi
call fcn.10003610
test eax, eax
jne 0x100035b9
mov esi, dword [edi + 0x350]
mov dword [edi + 0x35c], eax
mov dword [edi + 0x358], eax
call fcn.10001190
jmp 0x1000342c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [edi + 0x350]
call fcn.10001190
mov esi, dword [edi + 0x350]
push str.127.0.0.1
call ebx
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call fcn.10001090
mov eax, dword [edi + 0x350]
push 0
push 0
push 0
push 0
push 0x10
lea edx, [eax + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov ecx, dword [edi + 0x350]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
jmp 0x100035e5
test byte [esp + 0x28], 0x20
je 0x100035de
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov dword [edi + 0x35c], eax
mov dword [edi + 0x358], eax
jmp 0x100033eb
mov esi, edi
call fcn.10003910
cmp dword [edi + 0x14], 0
je 0x100033a1
mov ecx, edi
call fcn.10003a40
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100047f3
mov esp, ebp
pop ebp
ret