Function at 0x429770
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
sub esp, 0x44
mov eax, dword [0x537700]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, ecx
cmp edx, 2
je 0x4297ae
cmp edx, 0x17
jne 0x429966
mov eax, dword [esp + 0x60]
cmp eax, 1
je 0x4297c0
cmp eax, 5
jne 0x429966
lea esi, [edi + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x429838
push eax
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x4660ddf3
push eax
push 0xc8000006
push dword [ebx]
mov dword [esp + 0x50], 0xe576e98e
mov dword [esp + 0x54], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x429827
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x42982b
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0xc]
xchg dword [ecx], eax
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
xor eax, eax
cmp esi, edi
cmove esi, eax
test esi, esi
je 0x429966
mov dword [esp + 0x4c], eax
cmp edx, 2
lea eax, [ebp + 0x20]
mov ecx, 0x10
push eax
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, ecx
movq qword [esp + 0x48], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebx]
movups xmmword [esp + 0x44], xmm0
mov word [esp + 0x44], dx
call fcn.004207a0
mov ecx, dword [ebp + 0x28]
add esp, 0x10
test cl, 1
je 0x429911
cmp ecx, 1
jne 0x429899
cmp dword [ebp + 0x20], 0
je 0x429911
mov ecx, dword [0x537030]
mov eax, dword [0x537034]
cmp ecx, 0x257edfd1
jne 0x4298b3
cmp eax, 0xb2ab117a
je 0x4298c2
cmp ecx, 0x257edfd0
jne 0x4298c6
cmp eax, 0xb2ab117a
jne 0x4298c6
mov al, 1
jmp 0x4298da
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x2726
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2726
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x2c], 0x537028
push eax
call fcn.00414ed0
add esp, 8
test al, al
jne 0x429911
mov ecx, dword [edi + 4]
jmp 0x429a24
mov byte [ebp + 0x3c], 1
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
mov ebp, dword [esp + 0x14]
push ebp
push 0
push 0
push 0
push dword [esp + 0x78]
push dword [esp + 0x30]
push dword [ebx]
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x429958
cmp eax, 0x3e5
je 0x429958
mov ecx, dword [edi + 4]
push esi
push eax
push ebp
call fcn.00425a50
jmp 0x429a2c
mov ecx, dword [edi + 4]
push ebp
call fcn.00425b80
jmp 0x429a2c
lea edx, [edi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4299b2
mov eax, dword [edi]
push ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov esi, dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.0040c4d0
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esi
push dword [esi + 0x18]
push 0x40bb50
push eax
call fcn.004241b0
mov dword [esp + 0x10], eax
lea ecx, [edi + 8]
xchg dword [ecx], eax
test byte [ebx + 4], 3
jne 0x429a76
mov eax, dword [ebx]
lea edi, [ebp + 0x20]
cmp eax, 0xffffffff
jne 0x429a44
mov ecx, dword [0x537030]
mov eax, dword [0x537034]
cmp ecx, 0x257edfd1
jne 0x4299e0
cmp eax, 0xb2ab117a
je 0x4299ef
cmp ecx, 0x257edfd0
jne 0x4299f3
cmp eax, 0xb2ab117a
jne 0x4299f3
mov al, 1
jmp 0x429a07
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x537028
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
push 0
push ebp
call fcn.00426530
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b847a
add esp, 0x44
ret 0x1c
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov ecx, eax
shr ecx, 0x1f
push ecx
push edi
call fcn.00424970
add esp, 8
test esi, esi
js 0x429a1d
or byte [ebx + 4], 2
lea eax, [ebp + 0x20]
push eax
push dword [esp + 0x6c]
push dword [esp + 0x24]
push dword [ebx]
call fcn.00421d50
add esp, 0x10
test eax, eax
je 0x429a1d
mov edi, dword [0x537030]
mov esi, dword [0x537034]
cmp edi, 0x257edfd1
jne 0x429aac
cmp esi, 0xb2ab117a
je 0x429abc
cmp edi, 0x257edfd0
jne 0x429ac0
cmp esi, 0xb2ab117a
jne 0x429ac0
mov al, 1
jmp 0x429ae0
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x537034]
mov edi, dword [0x537030]
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2734
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x2c], 0x537028
push eax
call fcn.00414ed0
add esp, 8
test al, al
jne 0x429b7a
cmp edi, 0x257edfd1
jne 0x429b1f
cmp esi, 0xb2ab117a
je 0x429b2f
cmp edi, 0x257edfd0
jne 0x429b33
cmp esi, 0xb2ab117a
jne 0x429b33
mov al, 1
jmp 0x429b47
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2733
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x2c], 0x537028
push eax
call fcn.00414ed0
add esp, 8
test al, al
je 0x429a1d
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10]
push 0
push 0
push ebp
xorps xmm0, xmm0
movq qword [ebp + 0x20], xmm0
push eax
mov dword [ebp + 0x28], 0
push dword [ebx]
push 3
call fcn.00429bc0
mov ecx, dword [esp + 0x50]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b847a
add esp, 0x44
ret 0x1c