Function at 0x49c4b0
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x21c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp ebp, 0xffffffff
jne 0x49c521
mov ecx, dword [0x618be0]
mov eax, dword [0x618be4]
cmp ecx, 0x257edfd1
jne 0x49c4db
cmp eax, 0xb2ab117a
je 0x49c4ea
cmp ecx, 0x257edfd0
jne 0x49c4ee
cmp eax, 0xb2ab117a
jne 0x49c4ee
mov al, 1
jmp 0x49c502
mov eax, dword [0x618bd8]
mov ecx, 0x618bd8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [esp + 0x234]
movzx eax, al
add eax, 2
mov dword [edi], 0x2719
mov dword [edi + 4], 0x618bd8
mov dword [edi + 8], eax
jmp 0x49c543
push dword [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [esp + 0x234]
test eax, eax
mov ecx, edi
setne dl
call fcn.0049c2c0
mov ebx, dword [0x618be0]
mov esi, dword [0x618be4]
cmp ebx, 0x257edfd1
jne 0x49c55f
cmp esi, 0xb2ab117a
je 0x49c56f
cmp ebx, 0x257edfd0
jne 0x49c573
cmp esi, 0xb2ab117a
jne 0x49c573
mov al, 1
jmp 0x49c593
mov eax, dword [0x618bd8]
mov ecx, 0x618bd8
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x618be4]
mov ebx, dword [0x618be0]
movzx eax, al
lea edx, [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], 0x2734
mov ecx, edi
mov dword [esp + 0x18], 0x618bd8
mov dword [esp + 0x1c], eax
call fcn.0049ab20
test al, al
jne 0x49c62d
cmp ebx, 0x257edfd1
jne 0x49c5cc
cmp esi, 0xb2ab117a
je 0x49c5dc
cmp ebx, 0x257edfd0
jne 0x49c5e0
cmp esi, 0xb2ab117a
jne 0x49c5e0
mov al, 1
jmp 0x49c600
mov eax, dword [0x618bd8]
mov ecx, 0x618bd8
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x618be4]
mov ebx, dword [0x618be0]
movzx eax, al
lea edx, [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], 0x2733
mov ecx, edi
mov dword [esp + 0x18], 0x618bd8
mov dword [esp + 0x1c], eax
call fcn.0049ab20
test al, al
je 0x49c761
cmp ebp, 0xffffffff
jne 0x49c67e
cmp ebx, 0x257edfd1
jne 0x49c642
cmp esi, 0xb2ab117a
je 0x49c652
cmp ebx, 0x257edfd0
jne 0x49c65f
cmp esi, 0xb2ab117a
jne 0x49c65f
mov al, 1
mov dword [edi], 0x2719
jmp 0x49c751
mov eax, dword [0x618bd8]
mov ecx, 0x618bd8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], 0x2719
jmp 0x49c751
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x130], ebp
push eax
lea eax, [esp + 0x130]
mov dword [esp + 0x130], 1
push eax
push 0
lea eax, [ebp + 1]
mov dword [esp + 0x38], ebp
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov ecx, edi
test esi, esi
sets dl
call fcn.0049c2c0
test esi, esi
js 0x49c761
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 4
push eax
push 0x1007
push 0xffff
push ebp
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.0049c2c0
cmp esi, 0xffffffff
je 0x49c761
mov ecx, dword [0x618be0]
mov esi, dword [esp + 0x10]
mov eax, dword [0x618be4]
cmp ecx, 0x257edfd1
jne 0x49c729
cmp eax, 0xb2ab117a
je 0x49c738
cmp ecx, 0x257edfd0
jne 0x49c73f
cmp eax, 0xb2ab117a
jne 0x49c73f
test esi, esi
setne al
jmp 0x49c74f
mov eax, dword [0x618bd8]
mov ecx, 0x618bd8
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], esi
movzx eax, al
add eax, 2
mov dword [edi + 4], 0x618bd8
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret