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

Disassembly:
push 0xffffffffffffffff
push 0x628208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3430]
mov ebx, 1
cmp eax, ebp
je 0x5c548d
cmp dword [esi + 0x3428], 0x80090318
jne 0x5c555c
cmp dword [esi + 0x3434], ebp
je 0x5c5556
mov edx, dword [esi + 0x342c]
mov ecx, 0x10000
sub ecx, eax
push ebp
add edx, eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x5c54e1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5c54d7
mov dword [esi + 0x3428], 0x80090304
jmp 0x5c583d
mov eax, 0x2733
jmp 0x5c583d
cmp edi, ebp
jne 0x5c5501
push 0x6e1e10
mov ecx, esi
call fcn.005474d0
mov eax, 0x80090304
mov dword [esi + 0x3428], eax
jmp 0x5c583d
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x10], ecx
push edi
lea edx, [esp + 0x14]
push 0x6e236c
push edx
mov dword [esp + 0x28], ebp
call fcn.005f368b
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.005474d0
mov eax, dword [esi + 0x3430]
mov ecx, esi
add eax, edi
mov dword [esi + 0x3430], eax
call fcn.00549570
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005fa859
jmp 0x5c555c
mov dword [esi + 0x3434], ebx
mov ecx, dword [esi + 0x342c]
mov edx, dword [esi + 0x3430]
mov dword [esi + 0x3404], ebx
mov dword [esi + 0x33f0], ecx
lea ebx, [esi + 0x3420]
mov ecx, 2
push ebx
lea eax, [esi + 0x33e8]
mov dword [esi + 0x33ec], ecx
mov dword [esi + 0x33e0], ecx
mov dword [esi + 0x3410], ecx
lea ebx, [esi + 0x3418]
lea ecx, [esi + 0x3400]
push ebx
mov dword [eax], edx
mov dword [esi + 0x33e4], eax
mov edx, dword [esi + 0xb0]
push ecx
lea eax, [esi + 0x33dc]
push ebp
push ebp
push eax
push 0x10
mov dword [eax], ebp
mov eax, dword [esp + 0x48]
push ebp
mov dword [ecx], ebp
mov ecx, dword [esp + 0x48]
push 0xc11c
lea edi, [esi + 0x340c]
push ebp
push eax
push ecx
mov dword [esi + 0x33fc], ebp
mov dword [esi + 0x33f4], ebp
mov dword [esi + 0x33f8], ebp
mov dword [esi + 0x3414], ebp
mov dword [edi], ebp
mov dword [esi + 0x3408], edi
call dword [edx + 0x3bc]
cmp eax, ebp
mov dword [esi + 0x3428], eax
je 0x5c5624
cmp eax, 0x90312
je 0x5c5624
cmp eax, ebp
jge 0x5c56ae
mov eax, dword [ebx]
test ah, 0x40
je 0x5c56ae
mov edi, dword [edi]
cmp edi, ebp
je 0x5c56ae
mov eax, dword [esi + 0x3414]
cmp eax, ebp
je 0x5c56ae
mov edx, dword [esp + 0x24]
push ebp
push edi
push eax
push edx
call sub.WS2_32.dll_send
or ebx, 0xffffffff
cmp eax, ebx
je 0x5c56c0
cmp eax, ebp
je 0x5c56c0
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x24], ecx
push eax
lea edx, [esp + 0x28]
push 0x6e1cf0
push edx
mov dword [esp + 0x28], 2
call fcn.005f368b
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.005474d0
mov ecx, esi
call fcn.00549570
mov edx, dword [esi + 0x3414]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3e4]
lea ecx, [esp + 0x24]
mov dword [esi + 0x3414], ebp
mov dword [esp + 0x1c], ebx
call fcn.005fa859
mov eax, dword [esi + 0x3428]
cmp eax, 0x80090318
jne 0x5c572f
jmp 0x5c583d
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x30], eax
push edi
lea ecx, [esp + 0x34]
push 0x6e1de8
push ecx
mov dword [esp + 0x28], 1
call fcn.005f368b
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.005474d0
mov ecx, dword [esi + 0x3414]
mov eax, dword [esi + 0xb0]
push ecx
call dword [eax + 0x3e4]
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3c8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.005fa859
mov eax, edi
jmp 0x5c583d
cmp eax, ebp
jne 0x5c57cb
push 0x6e1dcc
mov ecx, esi
call fcn.005474d0
mov eax, dword [esi + 0x33f8]
mov byte [esi + 0x3304], 1
cmp eax, 5
jne 0x5c57bb
mov ecx, dword [esi + 0x33f4]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x30]
cmp eax, ebp
mov dword [edi + 8], eax
jne 0x5c5784
push 0x6e2354
mov ecx, esi
call fcn.005474d0
mov eax, 0x80090304
jmp 0x5c583d
mov ecx, dword [esi + 0x33f4]
mov edx, dword [esi + 0x342c]
mov ebp, dword [esi + 0x3430]
sub edx, ecx
add edx, ebp
push ecx
push edx
push eax
call fcn.005df1c0
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], 2
xor eax, eax
jmp 0x5c583d
mov eax, dword [esp + 0x30]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
xor eax, eax
jmp 0x5c583d
jl 0x5c583d
cmp eax, 0x90320
jne 0x5c57f8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.005c42b0
mov eax, 0x90312
mov dword [esi + 0x3434], ebp
mov dword [esi + 0x3428], eax
jmp 0x5c583d
cmp dword [esi + 0x33f8], 5
jne 0x5c5832
mov ecx, dword [esi + 0x342c]
mov eax, dword [esi + 0x33f4]
mov ebx, dword [esi + 0x3430]
mov edx, ecx
sub edx, eax
push eax
add edx, ebx
push edx
push ecx
call fcn.005df1c0
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5c5838
mov dword [esi + 0x3430], ebp
mov eax, 0x90312
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10