Function at 0x10064b30
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10252318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x34]
lea eax, [edi + 0x64]
push eax
call fcn.10091800
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x1c]
xor ebp, ebp
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], 1
call esi
cmp eax, 0xffffffff
je 0x10065230
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x1c]
push eax
push 0x8004667e
push ecx
call esi
cmp eax, 0xffffffff
je 0x10065230
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x13]
push 1
push edx
push 1
push 6
push eax
mov byte [esp + 0x27], 1
call esi
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x13]
push 1
push ecx
push 1
push 6
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea esi, [edi + 4]
push 2
push esi
call ebx
push 2
push esi
mov dword [esp + 0x20], eax
call ebx
push 0xa0
mov dword [esp + 0x18], eax
call fcn.1023d8fc
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x10064eee
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push 1
push edx
push eax
push ecx
push esi
mov ecx, edi
mov dword [esi + 0x74], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], 0x1e
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x70], ebp
call fcn.10064a40
push 0xa0
call fcn.1023d8fc
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x10064de8
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 0xffff
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
push ebp
push ecx
push edx
push eax
push ebx
mov ecx, edi
mov dword [ebx + 0x74], ebp
mov dword [ebx + 0x78], ebp
mov dword [ebx + 0x7c], 0x1e
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
mov dword [ebx + 0x70], ebp
call fcn.10064a40
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x4c]
push ebp
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10065116
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x50]
push ebp
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10065116
lea eax, [esi + 0x40]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esi + 0x20]
push ebp
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov edx, dword [esi]
push eax
lea ecx, [esi + 0x38]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10064f05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10064f05
lea eax, [esi + 0x40]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x68]
cmp eax, ebp
mov dword [esp + 0x60], eax
je 0x10064d81
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], ebp
lea edi, [eax + 8]
push ebp
mov ecx, edi
call fcn.1001a5e0
mov eax, dword [esp + 0x58]
add edi, 4
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x58], eax
jne 0x10064d59
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x10064d4e
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x10064d99
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x10064d88
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebp
cmp eax, ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
je 0x10064dba
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x10064da9
push esi
mov dword [esi + 0x78], ebp
mov dword [esi + 0x70], ebp
call fcn.1023d925
add esp, 4
lea eax, [ebx + 0x40]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebx + 0x68]
cmp esi, ebp
mov dword [esp + 0x60], esi
je 0x10064ea6
jmp 0x10064e81
mov edi, dword [esi + 0x68]
cmp edi, ebp
mov dword [esp + 0x60], edi
je 0x10064e1e
jmp 0x10064df9
mov edi, dword [esp + 0x60]
add edi, 8
xor ebx, ebx
push ebp
mov ecx, edi
call fcn.1001a5e0
add edi, 4
mov edx, ebx
dec ebx
test edx, edx
jne 0x10064dfe
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x10064df5
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x10064e36
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x10064e25
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebp
cmp eax, ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
je 0x10064e57
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x10064e46
push esi
mov dword [esi + 0x78], ebp
mov dword [esi + 0x70], ebp
call fcn.1023d925
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
jmp 0x1006522e
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
push ebp
mov ecx, esi
call fcn.1001a5e0
add esi, 4
mov ecx, edi
dec edi
test ecx, ecx
jne 0x10064e86
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x10064e7d
mov eax, dword [ebx + 0x68]
cmp eax, ebp
je 0x10064ebe
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x10064ead
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x74], ebp
cmp eax, ebp
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
je 0x10064edf
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x10064ece
push ebx
mov dword [ebx + 0x78], ebp
mov dword [ebx + 0x70], ebp
call fcn.1023d925
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call esi
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x1006522e
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x60]
add edi, 0x84
push edx
push eax
mov ecx, edi
mov dword [esp + 0x60], edi
call fcn.100674e0
cmp eax, ebp
jne 0x10064f5e
cmp dword [edi], ebp
jne 0x10064f35
mov ecx, dword [edi + 4]
push 1
push ecx
mov ecx, edi
call fcn.10066fd0
mov ecx, edi
call fcn.10067730
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x60]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [edi]
mov edx, dword [esp + 0x60]
mov dword [ecx + edx*4], eax
mov dword [eax + 0xc], esi
lea eax, [ebx + 0x40]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebx + 0x20]
push ebp
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov ecx, dword [ebx]
push edx
lea eax, [ebx + 0x38]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10065059
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10065059
cmp dword [0x102f7658], ebp
je 0x10064fd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
push eax
push edx
push str.CSocketSystem::AddSocket__:_WSARecv_failed2__SOKCET__d___errno__d__
push str.SocketSystem
push 1
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
lea eax, [ebx + 0x40]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebx + 0x68]
cmp esi, ebp
mov dword [esp + 0x58], esi
je 0x10065017
jmp 0x10064ff3
mov esi, dword [esp + 0x58]
add esi, 8
xor edi, edi
mov ecx, esi
call fcn.10097880
add esi, 4
mov eax, edi
dec edi
test eax, eax
jne 0x10064ff8
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
cmp eax, ebp
mov dword [esp + 0x58], eax
jne 0x10064fef
mov eax, dword [ebx + 0x68]
cmp eax, ebp
je 0x1006502f
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x1006501e
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x74], ebp
cmp eax, ebp
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
je 0x1006520d
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x10065043
jmp 0x1006520d
mov ecx, dword [esp + 0x14]
mov esi, dword [edi + 4]
mov eax, ecx
xor edx, edx
shr eax, 4
div esi
mov dword [esp + 0x4c], esi
mov esi, edx
mov edx, dword [edi]
cmp edx, ebp
mov dword [esp + 0x50], esi
je 0x10065095
mov eax, dword [edx + esi*4]
cmp eax, ebp
je 0x10065091
cmp dword [eax + 8], ecx
je 0x1006508d
mov eax, dword [eax]
cmp eax, ebp
jne 0x10065080
jmp 0x10065091
cmp eax, ebp
jne 0x100650ef
cmp edx, ebp
jne 0x100650ce
mov ecx, dword [esp + 0x4c]
lea esi, [ecx*4]
push esi
call fcn.1023d8fc
mov edx, dword [esp + 0x5c]
mov ecx, esi
mov edi, eax
xor eax, eax
shr ecx, 2
mov dword [edx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x50]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
mov edi, edx
mov dword [edx + 4], eax
mov ecx, edi
call fcn.10067730
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov edx, dword [edi]
mov ecx, dword [edx + esi*4]
mov dword [eax], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x14]
mov dword [edx + esi*4], eax
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x6c]
cmp eax, ebp
je 0x100650fc
mov dword [eax], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.10091860
mov eax, dword [esp + 0x18]
jmp 0x10065243
mov edi, dword [esi + 0x68]
cmp edi, ebp
mov dword [esp + 0x60], edi
je 0x10065156
jmp 0x10065127
mov edi, dword [esp + 0x60]
add edi, 8
mov dword [esp + 0x58], ebp
push ebp
mov ecx, edi
call fcn.1001a5e0
mov eax, dword [esp + 0x58]
add edi, 4
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x58], eax
jne 0x1006512e
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x10065123
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x1006516e
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x1006515d
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], ebp
cmp eax, ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
je 0x1006518f
mov edi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp edi, ebp
mov eax, edi
jne 0x1006517e
push esi
mov dword [esi + 0x78], ebp
mov dword [esi + 0x70], ebp
call fcn.1023d925
mov esi, dword [ebx + 0x68]
add esp, 4
cmp esi, ebp
mov dword [esp + 0x60], esi
je 0x100651d4
jmp 0x100651af
mov esi, dword [esp + 0x60]
add esi, 8
xor edi, edi
push ebp
mov ecx, esi
call fcn.1001a5e0
add esi, 4
mov eax, edi
dec edi
test eax, eax
jne 0x100651b4
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x100651ab
mov eax, dword [ebx + 0x68]
cmp eax, ebp
je 0x100651ec
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x100651db
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x74], ebp
cmp eax, ebp
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
je 0x1006520d
mov esi, dword [eax]
push eax
call fcn.1023d925
add esp, 4
cmp esi, ebp
mov eax, esi
jne 0x100651fc
mov dword [ebx + 0x78], ebp
push ebx
mov dword [ebx + 0x70], ebp
call fcn.1023d925
mov edx, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.10091860
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x24