Function at 0x432520
Capabilities:
Connect socket
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ec
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x5e8], eax
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x30], edi
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x34]
mov dword [edi + 0x3c], eax
mov dword [esp + 0x28], ebx
mov ecx, dword [eax + 8]
mov ebx, dword [ebx + 0x4b4]
movups xmmword [eax + 0xc], xmm0
push ecx
movq qword [eax + 0x1c], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x5c], ecx
lea esi, [ebx + 0x6c]
push eax
mov ecx, ebx
call fcn.004339f0
mov eax, dword [edi + 0x3c]
mov ecx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
cmp dword [eax], 0
jne 0x4325c7
movups xmm0, xmmword [eax + 0x24]
push 0x10
lea eax, [esp + 0x5ec]
push eax
push dword [esp + 0x20]
movups xmmword [esp + 0x5e4], xmm0
call fcn.00433810
test eax, eax
jne 0x432f5d
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3c], 0
jne 0x4325f3
jmp 0x432f5d
push 0x20
lea eax, [esp + 0x5dc]
push eax
push dword [esp + 0x20]
call fcn.00433810
test eax, eax
jne 0x432f5d
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3c], 0
je 0x432f5d
mov eax, dword [esp + 0x5e0]
mov edx, dword [esp + 0x5d8]
and eax, 0x4868e184
mov ecx, dword [esp + 0x5d4]
add eax, 0xa6d941f7
add eax, dword [esp + 0x5dc]
xor edx, 0x865f8036
mov edi, dword [esp + 0x28]
xor eax, 0x59c68376
mov dword [esp + 0x5c8], eax
mov dword [esp + 0x5c4], edx
lea eax, [ecx + edx]
xor ecx, dword [esp + 0x5d8]
sub ecx, dword [esp + 0x5dc]
xor eax, 0x2dee402b
mov dword [esp + 0x5cc], eax
xor ecx, 0xa927e0d3
lea eax, [esp + 0x5c4]
mov dword [esp + 0x5d0], ecx
mov ecx, dword [edi + 0x484]
push eax
push 0x10
lea eax, [esp + 0x2b8]
push eax
call fcn.004b48f0
mov eax, dword [esp + 0x5d4]
xor eax, dword [esp + 0x5d8]
mov ecx, dword [esp + 0x5e0]
xor eax, 0xd1160c3d
mov dword [esp + 0x4a0], eax
lea eax, [ecx - 0x1c6cddd8]
mov dword [esp + 0x4a4], eax
imul eax, dword [esp + 0x5d4], 0x4244f910
add eax, ecx
mov dword [esp + 0x4a8], eax
mov eax, dword [esp + 0x5d0]
xor eax, dword [esp + 0x5dc]
xor eax, 0xcd684161
mov dword [esp + 0x4ac], eax
mov eax, dword [esp + 0x4b0]
mov ecx, dword [edi + 0x484]
cmp eax, 0xa
je 0x4326f5
cmp eax, 0xc
je 0x4326f5
cmp eax, 0xe
jne 0x432765
sub eax, 0xa
je 0x432746
sub eax, 2
je 0x432725
sub eax, 2
jne 0x432765
push 1
lea eax, [esp + 0x5c8]
push eax
lea eax, [esp + 0x5ec]
push eax
lea eax, [esp + 0x2bc]
push eax
call fcn.004b8ca0
jmp 0x432765
push 1
lea eax, [esp + 0x5c8]
push eax
lea eax, [esp + 0x5ec]
push eax
lea eax, [esp + 0x2bc]
push eax
call fcn.004b9cb0
jmp 0x432765
push 1
lea eax, [esp + 0x5c8]
push eax
lea eax, [esp + 0x5ec]
push eax
lea eax, [esp + 0x2bc]
push eax
call fcn.004baa70
mov eax, dword [esp + 0x5c4]
add eax, 0xffffff60
cmp eax, 0x3f
ja 0x432f54
mov ecx, dword [edi + 0x4b0]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x7a120
call fcn.0049dc50
test eax, eax
jne 0x432f54
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0049c830
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x432f54
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x2c], 0x8000
call esi
test eax, eax
jne 0x432f49
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esp + 0x2c]
call esi
test eax, eax
jne 0x432f49
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x432f49
push dword [esp + 0x80]
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0x2c
mov esi, eax
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004d6ed0
add esp, 0xc
test esi, esi
je 0x4328fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x432f49
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
push 0
lea eax, [esp + 0x4c0]
mov dword [esp + 0x4c4], esi
push eax
push 0
push 0
mov dword [esp + 0x4cc], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x432f49
test eax, eax
je 0x4328d7
lea eax, [esp + 0x4b8]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x4328ff
mov ecx, dword [edi + 0x4b0]
lea eax, [esp + 0x5c]
push eax
push 1
call fcn.0049efe0
mov eax, dword [edi + 0x4b0]
push esi
inc dword [eax + 0x120]
jmp 0x432f4d
mov esi, dword [esp + 0x1c]
mov eax, dword [edi + 0x4b0]
mov ecx, ebx
push esi
inc dword [eax + 0x11c]
lea eax, [esp + 0x2c]
push eax
call fcn.004339f0
push 0x10000
call fcn.004d9a7e
add esp, 4
mov dword [esp + 0x3c], eax
push 0x10000
call fcn.004d9a7e
mov edi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x40], eax
xor esi, esi
lea eax, [esp + 0x5d4]
mov dword [esp + 0x34], 0
mov ecx, ebx
mov dword [esp + 0x38], esi
push 0x7d0
push 0x20
push eax
push edi
call fcn.00433630
test eax, eax
jne 0x432ecf
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3c], esi
je 0x432ecf
lea eax, [edi + edi*2]
shl eax, 4
mov dword [esp + 0x10], eax
nop word [eax + eax]
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], eax
test esi, esi
jne 0x432a7d
lea esi, [ebx + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
call fcn.00433080
mov eax, dword [esp + 0x14]
mov edx, 0x10000
mov ecx, dword [ebx + 0x84]
lea edi, [eax + eax*2]
add edi, edi
mov eax, dword [ecx + edi*8 + 0x10]
cmp eax, 0x10000
cmova eax, edx
test eax, eax
je 0x432a6d
push 0
push eax
push dword [esp + 0x44]
push dword [ecx + edi*8 + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432a25
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x6c]
push esi
call edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x432ed8
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], 1
jmp 0x432b4a
test esi, esi
je 0x432ec1
mov eax, dword [ebx + 0x84]
sub dword [eax + edi*8 + 0x10], esi
mov eax, dword [ebx + 0x84]
add dword [eax + edi*8 + 0x18], esi
lea eax, [ebx + 0x6c]
add dword [ebx + 0x8c], esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x38], 1
jmp 0x432a8c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x20]
jmp 0x432b4a
cmp esi, 1
jne 0x432b45
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
call fcn.00433080
mov ecx, dword [esp + 0x10]
add ecx, dword [ebx + 0x84]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
cmp edx, eax
cmovb eax, edx
test eax, eax
je 0x432b3c
push 0
push eax
mov eax, dword [esp + 0x5c]
sub eax, edx
add eax, dword [esp + 0x44]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x432afb
push esi
call edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x432ed8
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], 4
jmp 0x432b4a
test ecx, ecx
je 0x432eca
mov eax, dword [ebx + 0x84]
mov edx, dword [esp + 0x10]
sub dword [esp + 0x2c], ecx
push esi
sub dword [edx + eax + 0xc], ecx
mov eax, dword [ebx + 0x84]
add dword [edx + eax + 0x14], ecx
add dword [ebx + 0x88], ecx
call edi
cmp dword [esp + 0x2c], 0
mov edi, 1
jne 0x432b4a
xor eax, eax
mov dword [esp + 0x38], eax
jmp 0x432b4a
push esi
call edi
mov edi, dword [esp + 0x20]
jmp 0x432b4a
mov edi, eax
lea esi, [ebx + 0x6c]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x432c0b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
call fcn.00433080
mov ecx, dword [esp + 0x10]
mov edx, 0x10000
add ecx, dword [ebx + 0x84]
mov eax, dword [ecx + 0x10]
cmp eax, 0x10000
cmova eax, edx
test eax, eax
je 0x432cd6
push 0
push eax
push dword [esp + 0x48]
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432bc8
lea esi, [ebx + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x432ed2
mov eax, dword [esp + 0xc]
or eax, 2
mov dword [esp + 0xc], eax
jmp 0x432ce1
test esi, esi
je 0x432ec1
mov eax, dword [ebx + 0x84]
mov ecx, dword [esp + 0x10]
sub dword [ecx + eax + 0x10], esi
mov eax, dword [ebx + 0x84]
add dword [ecx + eax + 0x18], esi
lea eax, [ebx + 0x6c]
add dword [ebx + 0x8c], esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 1
mov dword [esp + 0x44], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], edi
jmp 0x432c14
cmp eax, 1
jne 0x432cdd
lea eax, [ebx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
call fcn.00433080
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x84]
mov edx, dword [esp + 0x18]
lea esi, [eax + eax*2]
add esi, esi
mov eax, dword [ecx + esi*8 + 0xc]
cmp edx, eax
cmovb eax, edx
test eax, eax
je 0x432cd3
push 0
push eax
mov eax, dword [esp + 0x4c]
sub eax, edx
add eax, dword [esp + 0x48]
push eax
push dword [ecx + esi*8 + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x432c90
lea esi, [ebx + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x432ed2
mov eax, dword [esp + 0xc]
or eax, 8
mov dword [esp + 0xc], eax
jmp 0x432ce1
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
je 0x432ec7
mov eax, dword [ebx + 0x84]
sub dword [esp + 0x18], ecx
sub dword [eax + esi*8 + 0xc], ecx
mov eax, dword [ebx + 0x84]
add dword [eax + esi*8 + 0x14], ecx
lea esi, [ebx + 0x6c]
add dword [ebx + 0x88], ecx
push esi
call edi
cmp dword [esp + 0x18], 0
jne 0x432d08
mov dword [esp + 0x34], 0
jmp 0x432d08
lea esi, [ebx + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
cmp edi, 1
je 0x432d02
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x2710
test eax, eax
jne 0x432d22
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3c], 0
je 0x432ed8
mov esi, dword [esp + 0x38]
jmp 0x432990
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0xc]
xor edx, edx
xor esi, esi
mov dword [esp + 0x1a8], edx
xor eax, eax
mov dword [esp + 0xa0], edx
xor edi, edi
mov dword [esp + 0x24], esi
test cl, 1
je 0x432d81
mov eax, dword [esp + 0x14]
mov edx, 1
mov esi, edx
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x84]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1ac], eax
mov eax, edx
mov dword [esp + 0x1a8], edx
mov edi, eax
mov dword [esp + 0x24], esi
test cl, 2
je 0x432dde
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edx, edx
je 0x432dae
mov eax, dword [ebx + 0x84]
mov eax, dword [edi + eax + 8]
nop word [eax + eax]
cmp dword [esp + ecx*4 + 0x1ac], eax
je 0x432dae
inc ecx
cmp ecx, edx
jb 0x432da0
cmp ecx, edx
jne 0x432dcf
cmp edx, 0x40
jae 0x432dcf
mov eax, dword [ebx + 0x84]
mov eax, dword [edi + eax + 8]
mov dword [esp + ecx*4 + 0x1ac], eax
inc dword [esp + 0x1a8]
mov ecx, dword [esp + 0xc]
or esi, 1
mov eax, esi
mov dword [esp + 0x24], esi
mov edi, eax
test cl, 4
je 0x432e1a
mov eax, dword [esp + 0x14]
mov esi, edi
mov edx, 1
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x84]
add ecx, ecx
or esi, 2
mov eax, dword [eax + ecx*8 + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xa4], eax
mov eax, esi
mov dword [esp + 0xa0], edx
mov dword [esp + 0x24], esi
jmp 0x432e21
mov edx, dword [esp + 0xa0]
test cl, 8
je 0x432e78
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edx, edx
je 0x432e4e
mov eax, dword [ebx + 0x84]
mov eax, dword [edi + eax + 8]
nop word [eax + eax]
cmp dword [esp + ecx*4 + 0xa4], eax
je 0x432e4e
inc ecx
cmp ecx, edx
jb 0x432e40
cmp ecx, edx
jne 0x432e6f
cmp edx, 0x40
jae 0x432e6f
mov eax, dword [ebx + 0x84]
mov eax, dword [edi + eax + 8]
mov dword [esp + ecx*4 + 0xa4], eax
inc dword [esp + 0xa0]
or esi, 2
mov dword [esp + 0x24], esi
mov eax, esi
cmp eax, 1
jne 0x432ea9
lea eax, [esp + 0x4c]
push eax
push 0
push 0
lea eax, [esp + 0x1b4]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x6c]
cmp eax, 0xffffffff
je 0x432ed8
jmp 0x432d08
cmp eax, 2
lea eax, [esp + 0x4c]
push eax
push 0
lea eax, [esp + 0xa8]
push eax
jne 0x432e86
push 0
jmp 0x432e8e
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x6c]
push esi
call edi
jmp 0x432ed8
lea esi, [ebx + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x3c]
call fcn.004d9a63
add esp, 4
push dword [esp + 0x40]
call fcn.004d9a63
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [ebx + 0x10]
jae 0x432f30
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x84]
add ecx, ecx
cmp dword [eax + ecx*8], 0
je 0x432f2d
mov dword [eax + ecx*8], 0
mov eax, dword [ebx + 0x84]
mov dword [eax + ecx*8 + 8], 0
dec dword [ebx + 0x14]
push esi
call edi
push 1
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esp + 0x1c]
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
jmp 0x432f5d
push dword [esp + 0x1c]
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x6c]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x10]
jae 0x432f9d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x84]
add ecx, ecx
cmp dword [eax + ecx*8], 0
je 0x432f9a
mov dword [eax + ecx*8], 0
mov eax, dword [ebx + 0x84]
mov dword [eax + ecx*8 + 8], 0
dec dword [ebx + 0x14]
push esi
call edi
mov esi, dword [esp + 0x58]
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x5f4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4