Function at 0x41838c
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x27c
mov dword [esp], 0x1000
call sub.msvcrt.dll_malloc
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x230]
test eax, eax
je 0x41892c
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x280]
cmp eax, edx
jge 0x4183c8
mov eax, edx
add eax, 1
mov dword [esp + 0x24c], eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x24], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x26c], 0
jmp 0x418423
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + eax*4 + 0x130]
mov eax, dword [esp + 0x284]
cmp edx, eax
je 0x418435
add dword [esp + 0x26c], 1
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x26c]
ja 0x418402
jmp 0x418436
nop
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x26c]
jne 0x41847a
mov eax, dword [esp + 0x12c]
cmp eax, 0x3f
ja 0x41847a
mov eax, dword [esp + 0x284]
mov edx, eax
mov eax, dword [esp + 0x26c]
mov dword [esp + eax*4 + 0x130], edx
mov eax, dword [esp + 0x12c]
add eax, 1
mov dword [esp + 0x12c], eax
mov dword [esp + 0x268], 0
jmp 0x4184a8
mov eax, dword [esp + 0x268]
mov edx, dword [esp + eax*4 + 0x130]
mov eax, dword [esp + 0x280]
cmp edx, eax
je 0x4184ba
add dword [esp + 0x268], 1
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x268]
ja 0x418487
jmp 0x4184bb
nop
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x268]
jne 0x4184ff
mov eax, dword [esp + 0x12c]
cmp eax, 0x3f
ja 0x4184ff
mov eax, dword [esp + 0x280]
mov edx, eax
mov eax, dword [esp + 0x268]
mov dword [esp + eax*4 + 0x130], edx
mov eax, dword [esp + 0x12c]
add eax, 1
mov dword [esp + 0x12c], eax
mov dword [esp + 0x264], 0
jmp 0x41852a
mov eax, dword [esp + 0x264]
mov edx, dword [esp + eax*4 + 0x2c]
mov eax, dword [esp + 0x284]
cmp edx, eax
je 0x418539
add dword [esp + 0x264], 1
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x264]
ja 0x41850c
jmp 0x41853a
nop
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x264]
jne 0x41856f
mov eax, dword [esp + 0x28]
cmp eax, 0x3f
ja 0x41856f
mov eax, dword [esp + 0x284]
mov edx, eax
mov eax, dword [esp + 0x264]
mov dword [esp + eax*4 + 0x2c], edx
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x260], 0
jmp 0x41859a
mov eax, dword [esp + 0x260]
mov edx, dword [esp + eax*4 + 0x2c]
mov eax, dword [esp + 0x280]
cmp edx, eax
je 0x4185a9
add dword [esp + 0x260], 1
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x260]
ja 0x41857c
jmp 0x4185aa
nop
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x260]
jne 0x4185df
mov eax, dword [esp + 0x28]
cmp eax, 0x3f
ja 0x4185df
mov eax, dword [esp + 0x280]
mov edx, eax
mov eax, dword [esp + 0x260]
mov dword [esp + eax*4 + 0x2c], edx
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [esp + 0x12c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24c]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
mov dword [esp + 0x248], eax
cmp dword [esp + 0x248], 0
je 0x4188ec
cmp dword [esp + 0x248], 0
js 0x4188fc
mov eax, dword [esp + 0x280]
lea edx, [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x4188fc
mov eax, dword [esp + 0x284]
lea edx, [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x4188fc
mov eax, dword [esp + 0x284]
lea edx, [esp + 0x12c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x4187b3
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x284]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov dword [esp + 0x244], eax
cmp dword [esp + 0x244], 0
jle 0x4188f2
mov dword [esp + 0x25c], 0
mov eax, dword [esp + 0x244]
mov dword [esp + 0x258], eax
jmp 0x41878e
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x25c]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x280]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x258]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov dword [esp + 0x240], eax
cmp dword [esp + 0x240], 0xffffffff
jne 0x418772
call fcn.00407c84
mov dword [esp + 0x23c], eax
cmp dword [esp + 0x23c], 0x2733
jne 0x4187a4
mov dword [esp], 1
call fcn.0040b294
jmp 0x41878e
mov eax, dword [esp + 0x240]
sub dword [esp + 0x258], eax
mov eax, dword [esp + 0x240]
add dword [esp + 0x25c], eax
mov eax, dword [esp + 0x25c]
cmp eax, dword [esp + 0x258]
jl 0x418700
jmp 0x4187a5
nop
cmp dword [esp + 0x258], 0
jne 0x4188f5
mov eax, dword [esp + 0x280]
lea edx, [esp + 0x12c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x4183d2
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x280]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov dword [esp + 0x244], eax
cmp dword [esp + 0x244], 0
jle 0x4188f8
mov dword [esp + 0x254], 0
mov eax, dword [esp + 0x244]
mov dword [esp + 0x250], eax
jmp 0x4188c6
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x254]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x284]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x250]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov dword [esp + 0x238], eax
cmp dword [esp + 0x238], 0xffffffff
jne 0x4188aa
call fcn.00407c84
mov dword [esp + 0x234], eax
cmp dword [esp + 0x234], 0x2733
jne 0x4188dc
mov dword [esp], 1
call fcn.0040b294
jmp 0x4188c6
mov eax, dword [esp + 0x238]
sub dword [esp + 0x250], eax
mov eax, dword [esp + 0x238]
add dword [esp + 0x254], eax
mov eax, dword [esp + 0x254]
cmp eax, dword [esp + 0x250]
jl 0x418838
jmp 0x4188dd
nop
cmp dword [esp + 0x250], 0
jne 0x4188fb
jmp 0x4183d2
nop
jmp 0x4183d2
nop
jmp 0x4188fc
nop
jmp 0x4188fc
nop
jmp 0x4188fc
nop
lea eax, [esp + 0x230]
mov dword [esp], eax
call fcn.0040b4bf
lea eax, [esp + 0x280]
mov dword [esp], eax
call fcn.00408d8a
lea eax, [esp + 0x284]
mov dword [esp], eax
call fcn.00408d8a
nop
jmp 0x41892d
nop
add esp, 0x27c
ret