Function at 0x436bf5
Capabilities:
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x168
mov eax, dword [0x459c80]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x16c]
push ebx
push ebp
push esi
push edi
push 0x10000
mov dword [esp + 0x14], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebp, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ebp
mov esi, edx
mov ebx, edx
mov edi, dword [ecx + 0x74]
test ebp, ebp
je 0x436f5a
mov ebx, 0x90312
cmp ebx, 0x90312
je 0x436c5c
cmp ebx, 0x80090318
jne 0x436f5a
test esi, esi
je 0x436c6c
cmp ebx, 0x80090318
jne 0x436d13
cmp dword [esp + 0x180], 0
je 0x436d08
cmp dword [esp + 0x184], 0
jbe 0x436ca6
mov eax, dword [esp + 0x184]
xor edx, edx
mov ebx, 0x3e8
div ebx
mov dword [esp + 0x34], eax
imul eax, edx, 0x3e8
xor edx, edx
mov dword [esp + 0x38], eax
jmp 0x436cb2
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [esp + 0x74], eax
inc ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x70], ebx
push eax
push edx
push edx
lea eax, [esp + 0x7c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x436e9f
push 0
mov eax, 0x10000
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x436e9f
mov ecx, dword [esp + 0x10]
add esi, eax
xor edx, edx
jmp 0x436d13
mov dword [esp + 0x180], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x64], edx
push 2
pop ebx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 0x11
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], edx
cmp dword [ecx + 0x70], edx
je 0x436da1
cmp dword [edi + 0x40], edx
je 0x436d79
mov eax, dword [edi + 0xc]
jmp 0x436d7b
mov eax, edx
push edx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
push ecx
push dword [edi + 0xc]
lea ecx, [esp + 0x74]
push 0x10
push 0x1811c
push ecx
push eax
push dword [edi + 8]
call dword [sym.imp.Secur32.dll_AcceptSecurityContext]
jmp 0x436dc7
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
push edx
push edx
lea eax, [esp + 0x78]
push eax
push 0x10
push edx
push 0xc19c
push edx
push dword [edi + 0xc]
push dword [edi + 8]
call sub.Secur32.dll_InitializeSecurityContextA
mov ebx, eax
test ebx, ebx
je 0x436deb
cmp ebx, 0x90312
je 0x436deb
test ebx, ebx
jns 0x436de3
test dword [esp + 0x14], 0x4000
jne 0x436deb
cmp ebx, 0x80090325
jne 0x436e48
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [ecx + 0x70], edx
je 0x436e02
cmp dword [edi + 0x40], edx
jne 0x436e02
mov dword [edi + 0x40], 1
cmp dword [esp + 0x3c], edx
je 0x436e4e
cmp dword [esp + 0x44], edx
je 0x436e4e
push edx
push dword [esp + 0x40]
push dword [esp + 0x4c]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
push dword [esp + 0x44]
mov dword [esp + 0x58], eax
call sub.Secur32.dll_FreeContextBuffer
cmp dword [esp + 0x50], 0
je 0x436e3d
push dword [esp + 0x50]
call sub.Secur32.dll_FreeContextBuffer
cmp dword [esp + 0x54], 0xffffffff
je 0x436ecb
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ebx, 0x80090318
je 0x436c48
test ebx, ebx
je 0x436ea9
cmp ebx, 0x80090325
je 0x436ea9
test ebx, ebx
js 0x436f5a
cmp dword [esp + 0x28], 5
jne 0x436e98
push dword [esp + 0x24]
sub esi, dword [esp + 0x28]
add esi, ebp
push esi
push ebp
call sub.VCRUNTIME140.dll_memmove
mov esi, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x10]
xor edx, edx
jmp 0x436c48
mov esi, edx
jmp 0x436c48
mov ebx, 0x80090304
jmp 0x436f5a
cmp dword [esp + 0x28], 5
jne 0x436f5a
cmp dword [edi + 0x28], edx
jne 0x436f00
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [edi + 0x2c], eax
pop ecx
test eax, eax
jne 0x436edc
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x80090304
jmp 0x436f63
push dword [esp + 0x24]
sub esi, dword [esp + 0x28]
add esi, ebp
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 2
jmp 0x436f5a
mov eax, dword [edi + 0x24]
add eax, dword [esp + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x436f1c
mov eax, 0x80090304
jmp 0x436f64
push dword [edi + 0x24]
push dword [edi + 0x2c]
push ebp
call sub.VCRUNTIME140.dll_memcpy
push dword [esp + 0x30]
sub esi, dword [esp + 0x34]
mov eax, dword [edi + 0x24]
add esi, dword [esp + 0x40]
add eax, ebp
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + 0x2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [edi + 0x2c], ebp
add esp, 0x1c
mov eax, dword [esp + 0x24]
add dword [edi + 0x24], eax
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
pop ecx
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449662
add esp, 0x168
ret