Function at 0x4034b0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45a7c0]
push ebx
mov ebx, dword [esp + 0x414]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x41c], eax
call fcn.00415d20
mov eax, dword [0x462620]
mov ecx, dword [0x462624]
mov ebp, dword [esp + 0x428]
add ecx, eax
mov eax, dword [0x465db8]
add esp, 4
cmp ecx, eax
jb 0x4035c0
push 5
push 0xa
push ebp
call fcn.0041fb10
add esp, 0xc
test eax, eax
je 0x40364a
push 0x466390
push ebp
call fcn.004150a0
add esp, 8
test eax, eax
je 0x403540
mov eax, dword [0x465db8]
mov ecx, dword [0x4663e0]
mov edx, dword [0x462620]
add ecx, eax
mov eax, dword [0x462624]
add eax, edx
cmp eax, ecx
jb 0x4035c0
mov ecx, dword [0x462d80]
mov eax, dword [0x462d84]
add ecx, 1
mov dword [0x462d80], ecx
mov ecx, dword [0x4650ec]
mov edi, 0
push ecx
lea edx, [esp + 0x14]
adc eax, edi
push edx
mov dword [0x462d84], eax
call fcn.0040fea0
add esp, 8
push edi
mov esi, eax
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [0x462bb0]
mov edx, dword [0x462bb4]
add ebp, esi
adc edx, edi
push ebx
mov dword [0x462bb0], ebp
mov dword [0x462bb4], edx
call fcn.00416390
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
call fcn.004233fe
add esp, 0x40c
ret
push ebp
call dword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xff000000
cmp eax, 0x7f000000
je 0x40368e
cmp ebp, dword [0x465e28]
je 0x40368e
push 0x46637c
push ebp
call fcn.004150a0
add esp, 8
test eax, eax
je 0x403639
mov eax, dword [0x462d90]
mov ecx, dword [0x465d90]
mov edi, dword [0x462d94]
push ecx
add eax, 1
adc edi, 0
push ebp
push ebx
mov dword [0x462d90], eax
mov dword [0x462d94], edi
call fcn.004160a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
call fcn.004233fe
add esp, 0x40c
ret
push 5
push 0x64
push ebp
call fcn.0041fb10
add esp, 0xc
test eax, eax
jne 0x4036ad
mov eax, dword [0x462d88]
mov edx, dword [0x4650f0]
mov edi, dword [0x462d8c]
push edx
add eax, 1
adc edi, 0
push ebp
push ebx
mov dword [0x462d88], eax
mov dword [0x462d8c], edi
call fcn.004160a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
call fcn.004233fe
add esp, 0x40c
ret
mov ebp, dword [0x465e0c]
xor edi, edi
cmp ebp, edi
jne 0x4036a0
mov ebp, dword [0x465dd4]
or dword [esp + 0x428], 0x80000
jmp 0x4036af
xor edi, edi
cmp dword [0x465e7c], edi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x4036d1
push 4
push 0x465e7c
push 0x1002
push 0xffff
push ebx
call esi
cmp dword [0x465e80], edi
je 0x4036ed
push 4
push 0x465e80
push 0x1001
push 0xffff
push ebx
call esi
push 0x45b740
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x462624]
mov edx, dword [0x462660]
mov ecx, dword [0x462664]
mov esi, dword [0x479b9c]
inc eax
add edx, 1
adc ecx, edi
cmp esi, edi
mov dword [0x462624], eax
mov dword [0x462660], edx
mov dword [0x462664], ecx
jne 0x403764
push 0x45a080
call fcn.0041f570
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4038a3
xor eax, eax
mov ecx, 0x5e
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x45b770]
mov dword [esi + 0x174], eax
inc dword [0x45b770]
xor edi, edi
jmp 0x403803
mov ecx, dword [esi + 0x88]
mov dword [0x479b9c], ecx
mov dword [esi + 0x130], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov word [esi + 0x5c], di
mov word [esi + 0x5e], di
mov dword [esi + 0x11c], edi
mov dword [esi + 0x16c], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x120], edi
mov byte [esi + 0x39], 0
mov dword [esi + 0xc], edi
mov edx, dword [esp + 0x428]
mov eax, dword [esp + 0x42c]
push edi
mov dword [esi + 0x10], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0xd8], ebp
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], 0xffffffff
mov dword [esi + 0x50], eax
call fcn.00422e61
lea ecx, [esi + 0x3a]
push ecx
push ebp
mov dword [esi + 0x2c], eax
call fcn.00415c80
push ebp
call fcn.00402db0
add esp, 0x10
cmp eax, edi
je 0x40387b
mov ebp, dword [esi + 0x108]
or ebp, 0x400010
test al, 2
mov dword [esi + 0x108], ebp
mov ecx, ebp
je 0x40387b
or ecx, 0x8000000
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10], edi
mov eax, dword [0x45b76c]
add eax, 4
mov dword [0x45b76c], eax
mov ecx, dword [esi + 0x174]
mov dword [esi + 0x14], eax
cmp ecx, dword [0x45b774]
jb 0x4038cc
call fcn.00402a90
cmp eax, 0xffffffff
jne 0x4038cc
push 0x45b740
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
call fcn.004233fe
add esp, 0x40c
ret
mov eax, dword [0x45b778]
mov edx, dword [esi + 0x174]
mov dword [eax + edx*4], esi
mov ecx, dword [0x45b780]
mov dword [esi + 4], ecx
mov dword [esi], 0x45b77c
mov edx, dword [0x45b780]
mov dword [edx], esi
mov ecx, dword [0x479ba0]
mov dword [0x45b780], esi
mov eax, dword [esi + 0x174]
mov edx, dword [esi + 0xdc]
push 0x25
add eax, 0x401
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push 0x45b740
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004233fe
add esp, 0x40c
ret