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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0x1000
jge 0x41234d
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x41231f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1001
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41233c
xor eax, eax
jmp 0x412511
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
mov dword [edx], 0x1000
mov dword [ebp - 0xc], 2
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x80090318
cmp dword [ebp - 0x30], 0x90312
je 0x4123a3
cmp dword [ebp - 0x30], 0x80090318
jne 0x4124e2
cmp dword [ebp - 0x14], 0
je 0x4123b2
cmp dword [ebp - 0x30], 0x80090318
jne 0x412403
push 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x48], eax
xor eax, eax
cmp dword [ebp - 0x48], 0
setg al
cmp eax, 1
je 0x4123fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x637
call fcn.0040e300
add esp, 8
xor eax, eax
jmp 0x412511
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
je 0x412441
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x100
lea eax, [ebp - 0x20]
push eax
push 0
push 0x4523ac
call dword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
jmp 0x41246c
push 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x100
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x4523ac
call dword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x80090318
jne 0x41247a
jmp 0x41238d
cmp dword [ebp - 0x34], 0
je 0x4124d6
cmp dword [ebp - 0x3c], 0
jbe 0x4124d6
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, dword [ebp - 0x3c]
sete cl
cmp ecx, 1
je 0x4124bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x649
call fcn.0040e300
add esp, 8
xor eax, eax
jmp 0x412511
mov edx, dword [ebp - 0x34]
push edx
call sub.Secur32.dll_FreeContextBuffer
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
jmp 0x41238d
cmp dword [ebp - 0x30], 0
je 0x4124fd
mov eax, dword [ebp - 0x30]
push eax
push 0x651
call fcn.0040e300
add esp, 8
xor eax, eax
jmp 0x412511
cmp dword [ebp - 0x34], 0
je 0x41250c
mov ecx, dword [ebp - 0x34]
push ecx
call sub.Secur32.dll_FreeContextBuffer
mov eax, 1
mov esp, ebp
pop ebp
ret