Function at 0x10044790
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x10084044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
mov byte [ebp - 0x1c9], 0
mov edx, dword [ebp + 8]
add eax, 0x54
lea eax, [esi + eax*4]
mov dword [ebp - 0x1d0], esi
mov dword [eax], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x1d4]
push edi
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.10044420
mov edi, eax
add esp, 8
test edi, edi
jne 0x10044ab0
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.10044f30
add esp, 8
test al, al
jne 0x10044868
call fcn.1001e7e1
mov esi, dword [eax]
call fcn.1001e7e1
push ecx
lea edx, [ebp - 0x138]
mov ecx, esi
mov edi, eax
call fcn.10061350
add esp, 4
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10044190
push dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
call fcn.10044530
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c8], 2
jne 0x100448ab
cmp dword [ebp - 0x1c4], 1
jne 0x100448ab
cmp byte [ebx + 0x6b7], 0
mov esi, dword [ebp - 0x1d4]
je 0x10044890
mov edx, esi
call fcn.10044b70
mov ecx, esi
call fcn.10044ad0
cmp byte [ebx + 0x6bf], 0
je 0x100448b8
mov edx, esi
mov ecx, ebx
call fcn.10045620
jmp 0x100448b8
mov esi, dword [ebp - 0x1d4]
mov ecx, esi
call fcn.10044ad0
cmp dword [ebx + 0x1b0], 0
je 0x100448ff
mov dl, 1
mov ecx, ebx
call fcn.100409f0
mov eax, dword [ebx + 0x1b0]
push 0
push esi
push dword [ebx + 0x1b4]
call eax
add esp, 0xc
mov dword [ebp - 0x1d4], eax
xor dl, dl
mov ecx, ebx
call fcn.100409f0
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
jne 0x1004494c
mov byte [ebp - 0x1c9], 1
cmp dword [ebp - 0x1c8], 2
jne 0x10044975
push ecx
push 2
mov edx, esi
mov ecx, ebx
call fcn.100451f0
mov edi, eax
add esp, 8
test edi, edi
je 0x10044975
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
call fcn.10044530
add esp, 4
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100448ff
mov edx, dword [ebp - 0x1d0]
push esi
call fcn.10044530
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.10061910
lea eax, [ebp - 0x1f0]
push eax
call fcn.10060f30
add esp, 4
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0x278], 1
movups xmmword [eax + 0x280], xmm0
jle 0x100449e8
push dword [eax + 0x294]
mov edx, 3
mov ecx, ebx
push dword [eax + 0x290]
call fcn.10042e70
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push dword [edx + 0x29c]
push dword [edx + 0x298]
mov edx, 4
call fcn.10042e70
mov eax, dword [ebp - 0x1d0]
add esp, 0x10
cmp byte [ebp - 0x1c9], 0
jne 0x10044aa6
cmp dword [eax + 0x54], 4
je 0x10044aa6
cmp byte [eax + 0x26d], 0
jne 0x10044a40
push dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10044a40
test edi, edi
jne 0x10044a93
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0xb
je 0x10044a89
sub ecx, 0x2728
je 0x10044a89
sub ecx, 1
je 0x10044a89
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
mov dword [ebx + 0x900], eax
call fcn.10044530
mov edi, 7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013577
mov esp, ebp
pop ebp
ret