Function at 0x4364c9
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 [0x44b240]
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 0x43682e
mov ebx, 0x90312
cmp ebx, 0x90312
je 0x436530
cmp ebx, 0x80090318
jne 0x43682e
test esi, esi
je 0x436540
cmp ebx, 0x80090318
jne 0x4365e7
cmp dword [esp + 0x180], 0
je 0x4365dc
cmp dword [esp + 0x184], 0
jbe 0x43657a
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 0x436586
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 0x436773
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 0x436773
mov ecx, dword [esp + 0x10]
add esi, eax
xor edx, edx
jmp 0x4365e7
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 0x436675
cmp dword [edi + 0x40], edx
je 0x43664d
mov eax, dword [edi + 0xc]
jmp 0x43664f
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 0x43669b
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 0x4366bf
cmp ebx, 0x90312
je 0x4366bf
test ebx, ebx
jns 0x4366b7
test dword [esp + 0x14], 0x4000
jne 0x4366bf
cmp ebx, 0x80090325
jne 0x43671c
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [ecx + 0x70], edx
je 0x4366d6
cmp dword [edi + 0x40], edx
jne 0x4366d6
mov dword [edi + 0x40], 1
cmp dword [esp + 0x3c], edx
je 0x436722
cmp dword [esp + 0x44], edx
je 0x436722
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 0x436711
push dword [esp + 0x50]
call sub.Secur32.dll_FreeContextBuffer
cmp dword [esp + 0x54], 0xffffffff
je 0x43679f
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ebx, 0x80090318
je 0x43651c
test ebx, ebx
je 0x43677d
cmp ebx, 0x80090325
je 0x43677d
test ebx, ebx
js 0x43682e
cmp dword [esp + 0x28], 5
jne 0x43676c
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 0x43651c
mov esi, edx
jmp 0x43651c
mov ebx, 0x80090304
jmp 0x43682e
cmp dword [esp + 0x28], 5
jne 0x43682e
cmp dword [edi + 0x28], edx
jne 0x4367d4
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 0x4367b0
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x80090304
jmp 0x436837
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 0x43682e
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 0x4367f0
mov eax, 0x80090304
jmp 0x436838
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.0043cf52
add esp, 0x168
ret