Function at 0x564130
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5c37b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x10000
mov esi, ecx
push ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esi + 0x3304], eax
jne 0x564207
push 0x66f6a0
mov ecx, esi
call fcn.00508d80
mov eax, dword [0x6754d4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x84]
mov dword [esp + 0x20], ebp
cmp eax, ebp
mov ebx, 1
jne 0x5641b4
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
call fcn.0059adab
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], bl
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x67ae54]
push eax
push ecx
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebp
je 0x5641df
lea ecx, [esp + 0x28]
call fcn.0059ad3d
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
push edx
call fcn.0050c130
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059ad3d
mov eax, 0x80090304
jmp 0x564952
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x3308], ebp
mov dword [esi + 0x330c], eax
mov dword [esi + 0x3300], 0x90312
mov ebx, 2
jmp 0x564233
mov ebx, 2
xor ebp, ebp
mov eax, dword [esi + 0x3300]
cmp eax, 0x90312
je 0x564252
cmp eax, 0x80090318
je 0x564252
cmp eax, 0x90320
jne 0x564918
cmp dword [esi + 0x3308], ebp
je 0x564261
cmp eax, 0x80090318
jne 0x5642be
cmp dword [esi + 0x330c], ebp
je 0x5642b4
push 0x3c
push edi
mov ecx, esi
call fcn.005092d0
cmp eax, ebp
jne 0x564952
mov eax, dword [esi + 0x3308]
mov edx, dword [esi + 0x3304]
mov ecx, 0x10000
push ebp
sub ecx, eax
add eax, edx
push ecx
push eax
push edi
call sub.WSOCK32.dll_recv
or edi, 0xffffffff
cmp eax, edi
je 0x564464
cmp eax, ebp
je 0x564556
add dword [esi + 0x3308], eax
jmp 0x5642be
mov dword [esi + 0x330c], 1
mov ecx, dword [esi + 0x3308]
lea eax, [esi + 0x32c4]
mov dword [esi + 0x32c0], eax
lea edi, [esi + 0x32e8]
mov dword [eax], ecx
lea eax, [esi + 0x32b8]
lea ecx, [esi + 0x32dc]
mov dword [esi + 0x32c8], ebx
mov dword [esi + 0x32bc], ebx
mov dword [esi + 0x32ec], ebx
mov dword [esi + 0x32d8], ebp
mov dword [esi + 0x32d0], ebp
mov dword [esi + 0x32d4], ebp
mov dword [eax], ebp
mov dword [esi + 0x32f0], ebp
mov dword [edi], ebp
mov dword [ecx], ebp
lea ebx, [esi + 0x32f8]
mov edx, dword [esi + 0x3304]
lea ebp, [esi + 0x32f4]
push ebx
push ebp
mov ebx, dword [esp + 0x34]
push ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push 0x10
push 0
push 0xc11c
mov dword [esi + 0x32cc], edx
mov edx, dword [esi + 0x80]
push 0
push eax
push ebx
mov dword [esi + 0x32e0], 1
mov dword [esi + 0x32e4], edi
call dword [edx + 0x344]
test eax, eax
mov dword [esi + 0x3300], eax
je 0x564382
cmp eax, 0x90312
je 0x564382
test eax, eax
jge 0x5643d0
mov eax, dword [ebp]
test ah, 0x40
je 0x5643d0
mov edi, dword [edi]
test edi, edi
je 0x5643d0
mov eax, dword [esi + 0x32f0]
test eax, eax
je 0x5643d0
push 0
push edi
mov edi, dword [esp + 0x30]
push eax
push edi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5645ef
test eax, eax
je 0x5645ef
mov edx, dword [esi + 0x32f0]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x36c]
mov dword [esi + 0x32f0], 0
jmp 0x5643d4
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x3300]
cmp eax, 0x80090318
je 0x56422c
xor ebp, ebp
cmp eax, ebp
je 0x5646c6
jl 0x564824
cmp eax, 0x90320
jne 0x56441e
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
push ebx
call fcn.00564c50
mov dword [esi + 0x330c], ebp
mov dword [esi + 0x3300], 0x90312
jmp 0x56422c
cmp dword [esi + 0x32d4], 5
jne 0x564459
mov eax, dword [esi + 0x32d0]
mov edx, dword [esi + 0x3308]
mov ecx, dword [esi + 0x3304]
sub edx, eax
add edx, ecx
push eax
push edx
push ecx
call fcn.0057f970
mov eax, dword [esi + 0x32d0]
add esp, 0xc
mov dword [esi + 0x3308], eax
jmp 0x56422c
mov dword [esi + 0x3308], ebp
jmp 0x56422c
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [0x6754d4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
push eax
lea edx, [esp + 0x2c]
push 0x66f830
push edx
mov dword [esp + 0x2c], ebx
call fcn.00593b08
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00508d80
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x150]
test cl, cl
jne 0x5644de
mov cl, byte [eax + 0x2aa]
test cl, cl
jne 0x5644de
push 0x66f820
mov ecx, esi
mov byte [eax + 0x150], 1
call fcn.00508d80
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.0059ad3d
mov eax, 0x757e
jmp 0x564952
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x3300], 0x80090304
cmp ecx, ebp
je 0x5644f6
mov eax, dword [ecx]
jmp 0x56450d
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0059adab
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 3
mov edx, dword [0x67ae54]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x564537
lea ecx, [esp + 0x38]
call fcn.0059ad3d
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.0050c130
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.0059ad3d
jmp 0x564918
push 0x66f7fc
mov ecx, esi
call fcn.00508d80
mov dword [esi + 0x3300], 0x80090304
mov edx, dword [0x6754d4]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x84]
mov ebx, 4
cmp eax, ebp
mov dword [esp + 0x20], ebx
jne 0x5645a4
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0059adab
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], 5
mov eax, dword [eax]
mov edx, dword [0x67ae54]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x5645d0
lea ecx, [esp + 0x38]
call fcn.0059ad3d
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.0050c130
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.0059ad3d
jmp 0x564918
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [0x6754d4]
mov edi, eax
mov dword [esp + 0x28], edx
push edi
lea eax, [esp + 0x2c]
mov ebx, 6
push 0x66f7d4
push eax
mov dword [esp + 0x2c], ebx
call fcn.00593b08
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00508d80
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x564651
mov edx, dword [esi + 0x80]
lea ecx, [esp + 0x38]
mov eax, dword [edx]
push eax
call fcn.0059adab
mov dword [esp + 0x10], 8
mov byte [esp + 0x20], 7
mov eax, dword [eax]
mov ecx, dword [0x67ae54]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 8
mov dword [esp + 0x20], ebx
je 0x56467d
lea ecx, [esp + 0x38]
call fcn.0059ad3d
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.0050c130
mov edx, dword [esi + 0x32f0]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x36c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x80]
push ecx
call dword [eax + 0x350]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059ad3d
mov eax, edi
jmp 0x564952
push 0x66f7b8
mov ecx, esi
call fcn.00508d80
mov eax, dword [esi + 0x32d4]
mov byte [esi + 0x31e0], 1
cmp eax, 5
jne 0x564813
mov edx, dword [esi + 0x32d0]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x38]
cmp eax, ebp
mov dword [edi + 8], eax
jne 0x56479f
push 0x66f7a4
mov ecx, esi
call fcn.00508d80
mov eax, dword [0x6754d4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x84]
mov edi, 8
cmp eax, ebp
mov dword [esp + 0x20], edi
jne 0x56474c
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
call fcn.0059adab
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x20], 9
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x67ae54]
push eax
push ecx
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
mov dword [esp + 0x20], edi
je 0x564777
lea ecx, [esp + 0x38]
call fcn.0059ad3d
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
push edx
call fcn.0050c130
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059ad3d
mov eax, 0x80090304
jmp 0x564952
mov ecx, dword [esi + 0x32d0]
mov edx, dword [esi + 0x3308]
mov ebp, dword [esi + 0x3304]
sub edx, ecx
add edx, ebp
push ecx
push edx
push eax
call fcn.0057f970
mov eax, dword [esi + 0x32d0]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x6754d4]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov edx, eax
lea eax, [esp + 0x28]
push edx
push 0x66f76c
push eax
mov dword [esp + 0x2c], 0xa
call fcn.00593b08
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00508d80
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
jmp 0x564911
mov eax, dword [esp + 0x38]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
jmp 0x564916
mov edx, dword [0x6754d4]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x3300]
lea ecx, [esp + 0x38]
push eax
mov edi, 0xb
push 0x66f734
push ecx
mov dword [esp + 0x2c], edi
call fcn.00593b08
mov edx, dword [esp + 0x44]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00508d80
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x150]
test cl, cl
jne 0x5648a4
mov cl, byte [eax + 0x2aa]
test cl, cl
jne 0x5648a4
push 0x66f820
mov ecx, esi
mov byte [eax + 0x150], 1
call fcn.00508d80
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059ad3d
mov eax, 0x757e
jmp 0x564952
mov ecx, dword [esi + 0x84]
mov ebx, 0x20
cmp ecx, ebp
je 0x5648b7
mov eax, dword [ecx]
jmp 0x5648ce
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
call fcn.0059adab
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 0xc
mov ecx, dword [0x67ae54]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00593b08
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], edi
je 0x5648f8
lea ecx, [esp + 0x34]
call fcn.0059ad3d
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.0050c130
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0059ad3d
xor ebp, ebp
cmp dword [esi + 0x3300], ebp
jge 0x564931
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x350]
mov eax, dword [esi + 0x3304]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3300]
cmp esi, ebp
jge 0x564950
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x564952
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14