Function at 0x4054d0
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 0x4054e6
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
cmp dword [edi + 0x2c], 0xffffffff
je 0x40572d
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 0x405512
mov dword [ebp - 0x14], 0x19000
jmp 0x40551b
cmp eax, 0x400
jge 0x40551b
mov esi, eax
push esi
call fcn.0041695e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041695e
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x3c], 0
je 0x40556c
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 0x405683
mov ecx, dword [ebp - 0xc]
push esi
push 0
push ecx
call fcn.0041c390
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 0x40566f
test esi, esi
je 0x40567c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push esi
push ecx
push edx
add ebx, esi
call fcn.004199f0
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 0x4055fe
cmp dword [edi + 0x6c], 5
jne 0x4055fe
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x4055f4
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
push str.code_down_ing
call fcn.00405070
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 0x40561d
fadd qword [0x434e58]
mov ecx, dword [edi + 0x10]
fild dword [edi + 0x10]
test ecx, ecx
jns 0x40562d
fadd qword [0x434e58]
fdivp st(1)
fmul qword [0x434e98]
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 0x40567c
sub esi, ebx
cmp esi, 0x400
jle 0x405536
mov esi, 0x400
jmp 0x405536
mov dword [edi + 0x68], 1
mov byte [ebp - 1], 0
jmp 0x405683
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 0x4056a7
push eax
call fcn.004176ca
add esp, 4
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4056ba
push eax
call fcn.004176ca
add esp, 4
mov dword [edi + 0xc], esi
lea esi, [ebx + 1]
push esi
call fcn.0041695e
push esi
push 0
push eax
mov dword [edi + 0xc], eax
call fcn.0041c390
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 0xc]
push ebx
push esi
push eax
call fcn.004199f0
add esp, 0x1c
cmp dword [edi + 0x6c], 5
jne 0x405717
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x40570d
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
push str.code_down_ing
call fcn.00405070
test esi, esi
je 0x405724
push esi
call fcn.004176ca
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov bl, byte [ebp - 1]
pop esi
push str.__________
call fcn.00417d01
add esp, 4
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret