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

Disassembly:
push 0xffffffffffffffff
push 0x6280c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x10000
mov esi, ecx
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [esi + 0x342c], eax
jne 0x5c378a
push 0x6e1cb4
mov ecx, esi
call fcn.005474d0
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x20], edi
cmp eax, edi
mov ebx, 1
jne 0x5c3734
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
call fcn.005fa8c7
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], bl
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x6ed78c]
push eax
push ecx
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], edi
je 0x5c375f
lea ecx, [esp + 0x28]
call fcn.005fa859
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0054f740
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.005fa859
mov eax, 0x80090304
jmp 0x5c3faf
mov eax, dword [esp + 0x34]
mov dword [esi + 0x3430], edi
mov edi, dword [esp + 0x28]
mov dword [esi + 0x3434], eax
mov dword [esi + 0x3428], 0x90312
or ebp, 0xffffffff
mov ebx, 2
jmp 0x5c37b7
mov ebx, 2
mov eax, dword [esi + 0x3428]
cmp eax, 0x90312
je 0x5c37d6
cmp eax, 0x80090318
je 0x5c37d6
cmp eax, 0x90320
jne 0x5c3f73
mov ecx, dword [esi + 0x3430]
test ecx, ecx
je 0x5c37e7
cmp eax, 0x80090318
jne 0x5c3844
mov eax, dword [esi + 0x3434]
test eax, eax
je 0x5c383a
push 0x3c
push edi
mov ecx, esi
call fcn.00548d60
test eax, eax
jne 0x5c3faf
mov eax, dword [esi + 0x3430]
mov edx, dword [esi + 0x342c]
mov ecx, 0x10000
push 0
sub ecx, eax
add eax, edx
push ecx
push eax
push edi
call sub.WS2_32.dll_recv
cmp eax, ebp
je 0x5c39f7
test eax, eax
je 0x5c3b11
add dword [esi + 0x3430], eax
jmp 0x5c3844
mov dword [esi + 0x3434], 1
mov ecx, dword [esi + 0x3430]
mov edx, dword [esi + 0x342c]
lea eax, [esi + 0x33e8]
mov dword [esi + 0x33ec], ebx
mov dword [esi + 0x33e0], ebx
mov dword [esi + 0x3410], ebx
lea ebx, [esi + 0x3420]
mov dword [eax], ecx
lea ebp, [esi + 0x3418]
lea ecx, [esi + 0x3400]
push ebx
push ebp
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x33e4], eax
push ecx
lea eax, [esi + 0x33dc]
push 0
mov dword [esi + 0x33f0], edx
push 0
xor edx, edx
push eax
lea edi, [esi + 0x340c]
push 0x10
mov dword [eax], edx
mov eax, dword [esp + 0x4c]
push 0
push 0xc11c
mov dword [esi + 0x33fc], edx
mov dword [esi + 0x33f4], edx
mov dword [esi + 0x33f8], edx
mov dword [esi + 0x3414], edx
mov dword [edi], edx
mov dword [ecx], edx
mov edx, dword [esi + 0xb0]
push 0
push eax
push ebx
mov dword [esi + 0x3404], 1
mov dword [esi + 0x3408], edi
call dword [edx + 0x3bc]
test eax, eax
mov dword [esi + 0x3428], eax
je 0x5c390a
cmp eax, 0x90312
je 0x5c390a
test eax, eax
jge 0x5c395a
mov eax, dword [ebp]
test ah, 0x40
je 0x5c395a
mov edi, dword [edi]
test edi, edi
je 0x5c395a
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5c395a
push 0
push edi
mov edi, dword [esp + 0x30]
push eax
push edi
call sub.WS2_32.dll_send
or ebp, 0xffffffff
cmp eax, ebp
je 0x5c3c27
test eax, eax
je 0x5c3c27
mov edx, dword [esi + 0x3414]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3e4]
mov dword [esi + 0x3414], 0
jmp 0x5c3961
mov edi, dword [esp + 0x28]
or ebp, 0xffffffff
mov eax, dword [esi + 0x3428]
cmp eax, 0x80090318
je 0x5c37b2
test eax, eax
je 0x5c3cfd
jl 0x5c3e57
cmp eax, 0x90320
jne 0x5c39ad
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
push ebx
call fcn.005c42b0
mov dword [esi + 0x3434], 0
mov dword [esi + 0x3428], 0x90312
jmp 0x5c37b2
cmp dword [esi + 0x33f8], 5
jne 0x5c39e8
mov eax, dword [esi + 0x33f4]
mov edx, dword [esi + 0x3430]
mov ecx, dword [esi + 0x342c]
sub edx, eax
add edx, ecx
push eax
push edx
push ecx
call fcn.005df1c0
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5c37b2
mov dword [esi + 0x3430], 0
jmp 0x5c37b2
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
push eax
lea edx, [esp + 0x2c]
push 0x6e1e34
push edx
mov dword [esp + 0x2c], ebx
call fcn.005f368b
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push eax
call fcn.005474d0
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x302]
test cl, cl
jne 0x5c3a9b
mov ecx, dword [eax + 0x158]
test ecx, ecx
jne 0x5c3a74
mov dword [eax + 0x158], 1
push 0x6dc320
mov ecx, esi
call fcn.005474d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.005fa859
mov eax, 0x757e
jmp 0x5c3faf
cmp ecx, 1
jne 0x5c3a86
mov dword [eax + 0x158], ebx
push 0x6dc314
jmp 0x5c3a56
cmp ecx, ebx
jne 0x5c3a9b
mov dword [eax + 0x158], 3
push 0x6dc304
jmp 0x5c3a56
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0x3428], 0x80090304
test ecx, ecx
je 0x5c3ab3
mov eax, dword [ecx]
jmp 0x5c3aca
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.005fa8c7
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 3
mov edx, dword [0x6ed78c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x5c3af4
lea ecx, [esp + 0x38]
call fcn.005fa859
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0054f740
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x28]
jmp 0x5c3f6e
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x302]
test cl, cl
jne 0x5c3b90
mov ecx, dword [eax + 0x158]
test ecx, ecx
jne 0x5c3b4b
push 0x6dc320
mov ecx, esi
mov dword [eax + 0x158], 1
call fcn.005474d0
mov eax, 0x757e
jmp 0x5c3faf
cmp ecx, 1
jne 0x5c3b6c
push 0x6dc314
mov ecx, esi
mov dword [eax + 0x158], ebx
call fcn.005474d0
mov eax, 0x757e
jmp 0x5c3faf
cmp ecx, ebx
jne 0x5c3b90
push 0x6dc304
mov ecx, esi
mov dword [eax + 0x158], 3
call fcn.005474d0
mov eax, 0x757e
jmp 0x5c3faf
push 0x6e1e10
mov ecx, esi
call fcn.005474d0
mov dword [esi + 0x3428], 0x80090304
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0xb4]
mov ebx, 4
test eax, eax
mov dword [esp + 0x20], ebx
jne 0x5c3bde
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.005fa8c7
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], 5
mov eax, dword [eax]
mov edx, dword [0x6ed78c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x5c3c0a
lea ecx, [esp + 0x38]
call fcn.005fa859
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0054f740
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x28]
jmp 0x5c3f6e
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x6e7b6c]
mov edi, eax
mov dword [esp + 0x28], edx
push edi
lea eax, [esp + 0x2c]
mov ebx, 6
push 0x6e1de8
push eax
mov dword [esp + 0x2c], ebx
call fcn.005f368b
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.005474d0
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x5c3c89
mov edx, dword [esi + 0xb0]
lea ecx, [esp + 0x38]
mov eax, dword [edx]
push eax
call fcn.005fa8c7
mov dword [esp + 0x10], 8
mov byte [esp + 0x20], 7
mov eax, dword [eax]
mov ecx, dword [0x6ed78c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 8
mov dword [esp + 0x20], ebx
je 0x5c3cb5
lea ecx, [esp + 0x38]
call fcn.005fa859
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.0054f740
mov edx, dword [esi + 0x3414]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3e4]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xb0]
push ecx
call dword [eax + 0x3c8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.005fa859
mov eax, edi
jmp 0x5c3faf
push 0x6e1dcc
mov ecx, esi
call fcn.005474d0
mov eax, dword [esi + 0x33f8]
mov byte [esi + 0x3304], 1
cmp eax, 5
jne 0x5c3e44
mov edx, dword [esi + 0x33f4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x38]
test eax, eax
mov dword [edi + 8], eax
jne 0x5c3dd6
push 0x6e1db8
mov ecx, esi
call fcn.005474d0
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb4]
mov edi, 8
test eax, eax
mov dword [esp + 0x20], edi
jne 0x5c3d84
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
call fcn.005fa8c7
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x20], 9
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x6ed78c]
push eax
push ecx
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
mov dword [esp + 0x20], edi
je 0x5c3daf
lea ecx, [esp + 0x38]
call fcn.005fa859
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0054f740
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebp
call fcn.005fa859
mov eax, 0x80090304
jmp 0x5c3faf
mov ecx, dword [esi + 0x33f4]
mov edx, dword [esi + 0x3430]
push ecx
sub edx, ecx
add edx, dword [esi + 0x342c]
push edx
push eax
call fcn.005df1c0
mov eax, dword [esi + 0x33f4]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x6e7b6c]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov edx, eax
lea eax, [esp + 0x28]
push edx
push 0x6e1d80
push eax
mov dword [esp + 0x2c], 0xa
call fcn.005f368b
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.005474d0
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x28]
jmp 0x5c3f6e
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x5c3f73
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x3428]
lea ecx, [esp + 0x38]
push eax
mov edi, 0xb
push 0x6e1d48
push ecx
mov dword [esp + 0x2c], edi
call fcn.005f368b
mov edx, dword [esp + 0x44]
add esp, 0xc
mov ecx, esi
push edx
call fcn.005474d0
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x302]
test cl, cl
jne 0x5c3f02
mov ecx, dword [eax + 0x158]
test ecx, ecx
jne 0x5c3eba
mov dword [eax + 0x158], 1
push 0x6dc320
jmp 0x5c3ee4
cmp ecx, 1
jne 0x5c3ed0
mov dword [eax + 0x158], 2
push 0x6dc314
jmp 0x5c3ee4
cmp ecx, 2
jne 0x5c3f02
mov dword [eax + 0x158], 3
push 0x6dc304
mov ecx, esi
call fcn.005474d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ebp
call fcn.005fa859
mov eax, 0x757e
jmp 0x5c3faf
mov ecx, dword [esi + 0xb4]
mov ebx, 0x20
test ecx, ecx
je 0x5c3f15
mov eax, dword [ecx]
jmp 0x5c3f2c
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
call fcn.005fa8c7
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 0xc
mov ecx, dword [0x6ed78c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.005f368b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], edi
je 0x5c3f56
lea ecx, [esp + 0x34]
call fcn.005fa859
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.0054f740
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x38]
call fcn.005fa859
mov eax, dword [esi + 0x3428]
test eax, eax
jge 0x5c3f8e
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3c8]
mov eax, dword [esi + 0x342c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3428]
test esi, esi
jge 0x5c3fad
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5c3faf
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