Function at 0x10038fc0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c46e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x10096748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x68]
call fcn.1000b050
mov dword [ebp - 4], 0
push 0
push 0xfa0
push 8
movzx eax, word [0x100976b8]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x130], esp
push 0x1009c6c4
call fcn.100054f0
mov dword [ebp - 0x134], eax
call fcn.1002aae0
add esp, 0x28
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0xffffffff
jne 0x10039096
mov byte [ebp - 0x68], 0
push str.INVALID_SOCKET
lea ecx, [ebp - 0x64]
call fcn.10010200
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov eax, dword [ebp - 0x8c]
or eax, 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x100397e7
mov dword [ebp - 0x14], 0x7d0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x20]
call fcn.10037ce0
mov edx, dword [0x1009c4dc]
mov dword [ebp - 0x1a], edx
mov dword [ebp - 0x12c], 0xa
push 0
push 0xa
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x124], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x84], 0
push 0x2000
call fcn.10044d27
add esp, 4
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 0
push 0
mov ecx, 4
sub ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
add edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jle 0x100391a2
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x90]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 4
jne 0x100391a0
jmp 0x100391a2
jmp 0x1003914c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0x84], 0
jne 0x10039244
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
call fcn.10049a46
add esp, 4
cmp dword [ebp - 0xa0], 0
jne 0x100391eb
mov dword [ebp - 0xbc], 0
jmp 0x10039201
mov dword [ebp - 0x88], 0x8123
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 0x68], 0
push 0x1008b298
lea ecx, [ebp - 0x64]
call fcn.10010200
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov eax, dword [ebp - 0x8c]
or eax, 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x100397e7
cmp dword [ebp - 0x84], 4
jge 0x100392fd
mov byte [ebp - 0x68], 0
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.1000af50
add esp, 8
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc4]
push ecx
push 0x1008b2cc
lea edx, [ebp - 0x224]
push edx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0x224]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20c]
call fcn.10005610
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov edx, dword [ebp - 0x8c]
or edx, 1
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x100397e7
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
add ecx, 4
mov dword [ebp - 0x9c], ecx
push 0
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jle 0x1003936a
mov edx, dword [ebp - 0x84]
add edx, dword [ebp - 0x90]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x9c]
jne 0x10039368
jmp 0x1003936a
jmp 0x1003930e
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [ebp - 0x9c]
je 0x1003952b
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.10049a46
add esp, 4
cmp dword [ebp - 0xa8], 0
jne 0x100393ac
mov dword [ebp - 0xcc], 0
jmp 0x100393c2
mov dword [ebp - 0x88], 0x8123
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 0x68], 0
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x9c]
push edx
lea eax, [ebp - 0x1c4]
push eax
call fcn.1000af50
add esp, 8
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10c]
push edx
push 0x1008b2e8
lea eax, [ebp - 0x23c]
push eax
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 4
push str._receiveOverSize:
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x194]
push eax
call fcn.10012e20
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1f4]
push ecx
call fcn.10012af0
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0x1f4]
call fcn.10005610
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x194]
call fcn.10005610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x23c]
call fcn.10005610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.10005610
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov ecx, dword [ebp - 0x8c]
or ecx, 1
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x100397e7
push 8
call fcn.10044d27
add esp, 4
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x98], edx
push 0
push 8
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 8
jl 0x1003957c
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov dword [0x100976e0], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.10049a46
add esp, 4
cmp dword [ebp - 0xa4], 0
jne 0x100395ac
mov dword [ebp - 0xf8], 0
jmp 0x100395c2
mov dword [ebp - 0x98], 0x8123
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
movzx edx, byte [0x100976f0]
test edx, edx
je 0x10039725
mov eax, dword [0x1009c4dc]
push eax
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0xe4], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1ac]
push eax
call fcn.100375a0
add esp, 4
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 7
push 0x1008b318
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x17c]
push eax
call fcn.10012e20
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.10012af0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], edx
mov byte [ebp - 4], 9
push 0x1008b2e4
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.10012e20
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x164]
call fcn.10005610
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x17c]
call fcn.10005610
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1ac]
call fcn.10005610
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1dc]
call fcn.10005610
push 0
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x80]
call fcn.10005690
push eax
lea ecx, [ebp - 0x284]
push ecx
call fcn.10026b00
add esp, 0x14
lea ecx, [ebp - 0x284]
call fcn.1000d220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.10005610
push 0x1009c900
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x2cc]
push eax
call fcn.100386e0
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xd0]
push edx
lea ecx, [ebp - 0x68]
call fcn.1000f3a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2cc]
call fcn.1000d220
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.10049a46
add esp, 4
cmp dword [ebp - 0xac], 0
jne 0x100397a4
mov dword [ebp - 0xd8], 0
jmp 0x100397ba
mov dword [ebp - 0x88], 0x8123
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xd8], edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov ecx, dword [ebp - 0x8c]
or ecx, 1
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004910b
mov esp, ebp
pop ebp
ret