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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
cmp dword [edi + 0x6c], 5
je 0x405936
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
cmp dword [edi + 0x2c], 0xffffffff
je 0x405b7d
mov eax, dword [edi + 0x10]
xor ebx, ebx
push esi
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], eax
mov esi, 0x400
test eax, eax
jg 0x405962
mov dword [ebp - 0x14], 0x19000
jmp 0x40596b
cmp eax, 0x400
jge 0x40596b
mov esi, eax
push esi
call fcn.00416ad5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00416ad5
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x3c], 0
je 0x4059bc
mov ecx, dword [edi + 0x54]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x54]
movzx edx, byte [edi + 8]
add eax, 4
push eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
setne al
test al, al
je 0x405ad3
mov ecx, dword [ebp - 0xc]
push esi
push 0
push ecx
call fcn.0041c300
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 0x2c]
add esp, 0xc
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x405abf
test esi, esi
je 0x405acc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push esi
push ecx
push edx
add ebx, esi
call fcn.00419960
inc dword [edi + 0x60]
mov eax, dword [edi + 0x60]
xor edx, edx
mov ecx, 0x64
div ecx
add dword [ebp - 0x10], esi
add esp, 0xc
test edx, edx
jne 0x405a4e
cmp dword [edi + 0x6c], 5
jne 0x405a4e
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x405a44
movzx ecx, byte [edi + 0x18]
push edx
mov edx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0x44]
push ecx
mov ecx, dword [edi + 0x48]
push edx
mov edx, dword [edi + 0x40]
push ecx
mov ecx, dword [edi + 0x20]
push edx
push ecx
call eax
add esp, 0x1c
mov ecx, str.code_down_ing
call fcn.00405430
mov esi, dword [ebp - 0x14]
mov eax, ebx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
mov dword [edi + 0x40], ebx
mov dword [edi + 0x48], edx
test eax, eax
jns 0x405a6d
fadd qword [0x433208]
mov ecx, dword [edi + 0x10]
fild dword [edi + 0x10]
test ecx, ecx
jns 0x405a7d
fadd qword [0x433208]
fdivp st(1)
fmul qword [0x433248]
fnstcw word [ebp - 6]
movzx eax, word [ebp - 6]
or eax, 0xc00
mov dword [ebp - 0x18], eax
fldcw word [ebp - 0x18]
fistp qword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x44], edx
fldcw word [ebp - 6]
cmp ebx, esi
jge 0x405acc
sub esi, ebx
cmp esi, 0x400
jle 0x405986
mov esi, 0x400
jmp 0x405986
mov dword [edi + 0x68], 1
mov byte [ebp - 1], 0
jmp 0x405ad3
mov dword [edi + 0x68], 3
lea eax, [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x48], esi
mov dword [edi + 0x44], 0x64
cmp eax, esi
je 0x405af7
push eax
call fcn.00417841
add esp, 4
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x405b0a
push eax
call fcn.00417841
add esp, 4
mov dword [edi + 0xc], esi
lea esi, [ebx + 1]
push esi
call fcn.00416ad5
push esi
push 0
push eax
mov dword [edi + 0xc], eax
call fcn.0041c300
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 0xc]
push ebx
push esi
push eax
call fcn.00419960
add esp, 0x1c
cmp dword [edi + 0x6c], 5
jne 0x405b67
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x405b5d
mov ecx, dword [edi + 0x50]
movzx edx, byte [edi + 0x18]
push 0
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x40]
push edx
mov edx, dword [edi + 0x20]
push ecx
push edx
call eax
add esp, 0x1c
mov ecx, str.code_down_ing
call fcn.00405430
test esi, esi
je 0x405b74
push esi
call fcn.00417841
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov bl, byte [ebp - 1]
pop esi
push str.__________
call fcn.00417e81
add esp, 4
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret