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

Disassembly:
push ebp
mov ecx, 0xc000
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov edx, dword [ebx + 0xa4]
mov dword [esp + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
xor ecx, ecx
test eax, eax
mov esi, eax
je 0x414d20
cmp eax, 0xffffffff
je 0x414d20
add dword [ebx + 0x90], eax
mov edx, dword [ebx + 0xac]
lea edi, [edx + eax]
cmp edi, dword [ebx + 0xc4]
jle 0x414d2a
mov esi, esi
lea edi, [edi]
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
mov dword [esp + 8], eax
add edx, edi
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._memcpy
add dword [ebx + 0xac], esi
mov esi, esi
mov eax, dword [ebx + 0xa8]
test eax, eax
jne 0x414e70
cmp dword [ebx + 0xac], 9
jle 0x414f65
mov edi, 0xa
lea edx, [ebp - 0x28]
mov dword [esp + 8], edi
mov ecx, dword [ebx + 0xa0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym._memmove
movzx esi, byte [ebp - 0x22]
mov edx, dword [ebx + 0xc4]
movzx eax, word [ebp - 0x24]
shl esi, 0x10
lea ecx, [eax + esi + 0xa]
mov dword [ebx + 0xa8], ecx
cmp ecx, edx
mov eax, ecx
jle 0x414e70
jle 0x414f6f
lea esi, [esi]
lea edi, [edi]
lea eax, [edx + 0x100000]
cmp ecx, eax
mov edx, eax
jg 0x414dc0
mov dword [ebx + 0xc4], eax
mov dword [esp + 4], eax
mov dword [esp], 0x42
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
mov ecx, dword [ebx + 0xc4]
sub esp, 4
mov esi, eax
mov dword [esp], 0x42
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
mov edi, eax
mov edx, dword [ebx + 0xa0]
sub esp, 4
mov eax, dword [ebx + 0xac]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebx + 0xa0]
test eax, eax
jne 0x414f1e
mov eax, dword [ebx + 0xbc]
test eax, eax
jne 0x414ee7
mov dword [ebx + 0xa0], esi
mov eax, dword [ebx + 0xa8]
mov dword [ebx + 0xbc], edi
lea esi, [esi]
lea edi, [edi]
cmp dword [ebx + 0xac], eax
jl 0x414f65
inc dword [ebx + 0x8c]
mov esi, dword [ebx]
mov dword [esp], ebx
call dword [esi + 8]
test eax, eax
je 0x414f6f
mov edx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
cmp edx, eax
je 0x414f55
sub edx, eax
xor edi, edi
mov dword [esp + 8], edx
mov esi, dword [ebx + 0xa0]
add eax, esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._memmove
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
mov dword [ebx + 0xa8], edi
sub ecx, edx
mov dword [ebx + 0xac], ecx
jmp 0x414d50
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalUnlock
mov eax, dword [ebx + 0xbc]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalFree
sub esp, 4
jmp 0x414e50
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalUnlock
mov edx, dword [ebx + 0xa0]
sub esp, 4
mov dword [esp], edx
call sub.KERNEL32.dll_GlobalHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalFree
sub esp, 4
jmp 0x414e42
xor edx, edx
xor eax, eax
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xac], eax
mov ecx, 1
jmp 0x414d20
xor ecx, ecx
jmp 0x414d20