Function at 0x4367d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov edx, dword [esi + 0x2c]
and edx, 0xfffdffff
mov dword [esi + 0x2c], edx
cmp dword [ebx + 0x20], 0
jge 0x436885
test edx, 0x100
jne 0x43680d
test edx, 0x80000
jne 0x436a54
and edx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], edx
jne 0x436835
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x436835
and edx, 0xffffffbf
mov dword [esi + 0x2c], edx
test dl, 0x20
je 0x436835
mov eax, dword [esi + 4]
dec dword [eax + 4]
test dword [esi + 0x2c], 0x80000
je 0x436844
xor ecx, ecx
xor eax, eax
jmp 0x436850
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x14], eax
call fcn.0044d860
cmp eax, 0x2745
mov ecx, 0x2746
cmove eax, ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0044c110
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
jmp 0x436a54
test edx, 0x80000
jne 0x4368b4
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x43693c
lea edi, [esi + 0x98]
push edi
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebx + 0x24]
add esp, 0xc
cmp eax, dword [edi]
jb 0x436a39
test dword [esi + 0x2c], 0x100
je 0x436a39
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x34]
push 0x10000
push esi
call eax
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x436a27
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x90]
call edi
cmp eax, 0xffffffff
je 0x4369c8
mov eax, dword [ebp + 8]
test eax, eax
je 0x436992
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, dword [ebp - 0x14]
jb 0x436a39
test dword [esi + 0x2c], 0x100
jne 0x4368c7
jmp 0x436a39
test edx, 0x100
je 0x43696c
and edx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], edx
jne 0x43696c
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x43696c
and edx, 0xffffffbf
mov dword [esi + 0x2c], edx
test dl, 0x20
je 0x43696c
mov eax, dword [esi + 4]
dec dword [eax + 4]
and dword [esi + 0x2c], 0xffff7fff
lea eax, [esi + 0x98]
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0xfffff001
jmp 0x436a30
mov ecx, dword [esi + 0x2c]
and ecx, 0xffff7eff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x4369bd
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x4369bd
and ecx, 0xffffffbf
mov dword [esi + 0x2c], ecx
test cl, 0x20
je 0x4369bd
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push 0xfffff001
jmp 0x436a30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp edx, 0x2733
jne 0x4369e0
lea eax, [ebp - 0x14]
push eax
push 0
jmp 0x436a30
mov ecx, dword [esi + 0x2c]
and ecx, 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x436a0b
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x436a0b
and ecx, 0xffffffbf
mov dword [esi + 0x2c], ecx
test cl, 0x20
je 0x436a0b
mov eax, dword [esi + 4]
dec dword [eax + 4]
cmp edx, 0x2745
mov eax, 0x2746
cmove edx, eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edx
call fcn.0044c110
push eax
jmp 0x436a30
lea eax, [ebp - 0x14]
push eax
push 0xfffff024
mov eax, dword [esi + 0x38]
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x2c]
mov edi, dword [ebp - 8]
and eax, 0x20100
cmp eax, 0x100
jne 0x436a54
mov edx, esi
mov ecx, edi
call fcn.00435e20
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x436a79
test ecx, ecx
jne 0x436a79
test al, 4
jne 0x436a79
or eax, 4
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [edi + 0x2c], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret