Function at 0x10014470
Capabilities:
Connect socket
Get common file path
Get local ipv4 addresses
Get socket information
Link many functions at runtime
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], ebx
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x294]
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
mov edi, 1
or edx, 2
push 0x10023674
push ecx
mov dword [esp + 0x40], 0xffffffff
mov dword [ebp + 0x7c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x10057de4]
add esp, 0xc
cmp eax, ebx
jne 0x100146aa
mov eax, dword [0x10057de0]
mov dword [esp + 0x18], str.getaddrinfo
cmp eax, ebx
mov dword [esp + 0x1c], 0x10011ac0
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10012200
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x10011a70
jne 0x100146a0
lea edx, [esp + 0x184]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10014695
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x100145d7
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10014657
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x10014695
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10014657
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10014695
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [edi], eax
je 0x1001464e
mov eax, dword [esp + 0x14]
add edi, 8
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x1001465f
xor eax, eax
mov edx, dword [esp + eax + 0x1c]
mov dword [eax + 0x1002302c], edx
add eax, 8
cmp eax, 0x18
jl 0x10014683
mov edi, 1
mov dword [0x10057de0], edi
mov eax, dword [0x1002302c]
mov dword [0x10057de4], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push edx
mov edx, dword [esp + 0x298]
lea ecx, [esp + 0x60]
push ecx
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebx
jne 0x10014923
mov eax, dword [esp + 0x10]
push edi
push ebx
push ebx
mov ecx, dword [eax + 4]
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014769
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10014769
lea ecx, [esp + 0x14]
push 4
push ecx
push edi
push 6
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, ebp
mov dword [esp + 0x34], ebx
mov dword [ebp + 0x10], esi
call fcn.100143c0
xor edx, edx
lea eax, [esp + 0x30]
mov dword [esp + 0x1a], edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e], edx
push eax
mov dword [esp + 0x26], edx
push ecx
push esi
mov word [esp + 0x24], bx
mov word [esp + 0x32], dx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [esp + 0x18], 2
jne 0x10014769
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x7c], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [0x10057ddc]
cmp eax, ebx
jne 0x1001491c
mov eax, dword [0x10057de0]
mov dword [esp + 0x18], str.getaddrinfo
cmp eax, ebx
mov dword [esp + 0x1c], 0x10011ac0
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10012200
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x10011a70
jne 0x10014912
lea ecx, [esp + 0x184]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10014908
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x1001485a
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100148d6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
cmp esi, ebx
je 0x10014908
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100148d6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10014908
xor ebp, ebp
lea edi, [esp + 0x1c]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [edi], eax
je 0x100148cd
inc ebp
add edi, 8
cmp ebp, 3
jl 0x100148dc
mov edx, dword [esp + ebx + 0x1c]
mov dword [ebx + 0x1002302c], edx
add ebx, 8
cmp ebx, 0x18
jl 0x100148f6
mov dword [0x10057de0], 1
mov eax, dword [0x1002303c]
mov dword [0x10057ddc], eax
mov ecx, dword [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 8