Function at 0x10064040
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov eax, dword [0x101aa250]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x8e], 0
jbe 0x1006406a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8e]
mov dword [ebp - 0x24], eax
jmp 0x10064077
cmp dword [ebp - 0x24], 0
jne 0x10064077
mov dword [ebp - 0x24], 0x15f90
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xffffffff
jne 0x100640a5
push 0x1fb
push 0x101aa31c
push 0x2bf
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0x2bf
jmp 0x10064349
cmp dword [ebp + 0xc], 0
je 0x100640b1
cmp dword [ebp + 0x10], 0
jne 0x100640d4
push 0x200
push 0x101aa328
push 1
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 1
jmp 0x10064349
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
call fcn.10004150
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 4
lea edx, [ebp - 0x24]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp dword [0x101cc91c], 0
je 0x10064131
mov edx, dword [0x101cc920]
push edx
push 0
push 0
push 1
push 0
call dword [0x101cc91c]
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jae 0x1006431c
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100641a9
cmp dword [0x101cc91c], 0
je 0x1006417e
mov eax, dword [0x101cc920]
push eax
push 0
push 0
push 0
push 0
call dword [0x101cc91c]
add esp, 0x14
push 0x215
push 0x101aa334
push 0x2cd
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0x2cd
jmp 0x10064349
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1006424e
call fcn.10063410
mov word [ebp - 0x20], ax
movsx ecx, word [ebp - 0x20]
cmp ecx, 0x274c
je 0x10064247
mov edx, 0x2cb
mov word [ebp - 4], dx
movsx eax, word [ebp - 0x20]
cmp eax, 0x2745
jne 0x100641e7
mov ecx, 0x2dc
mov word [ebp - 4], cx
jmp 0x100641fc
movsx edx, word [ebp - 0x20]
cmp edx, 0x2746
jne 0x100641fc
mov eax, 0x2db
mov word [ebp - 4], ax
cmp dword [0x101cc91c], 0
je 0x1006421d
mov ecx, dword [0x101cc920]
push ecx
push 0
push 0
push 0
push 0
call dword [0x101cc91c]
add esp, 0x14
push 0x224
push 0x101aa340
movsx edx, word [ebp - 0x20]
push edx
movzx eax, word [ebp - 4]
push eax
push 0x40003
call fcn.100030a0
add esp, 0x14
mov ax, word [ebp - 4]
jmp 0x10064349
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x8e], 0
je 0x1006428f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x8e]
je 0x1006428f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8e]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0xc], 0
jle 0x10064309
call fcn.10004150
mov ecx, dword [ebp - 0x24]
xor esi, esi
add ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
adc edi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x34]
jl 0x10064309
jg 0x100642c5
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jb 0x10064309
cmp dword [0x101cc91c], 0
je 0x100642e6
mov ecx, dword [0x101cc920]
push ecx
push 0
push 0
push 0
push 0
call dword [0x101cc91c]
add esp, 0x14
push 0x237
push 0x101aa34c
push 0x2cf
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0x2cf
jmp 0x10064349
cmp dword [ebp - 0x1c], 0
jne 0x10064317
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10064131
cmp dword [0x101cc91c], 0
je 0x1006433f
mov edx, dword [0x101cc920]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
push 0
call dword [0x101cc91c]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret