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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40d4
call fcn.0046cfc0
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.WSOCK32.dll_recvfrom]
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea esp, [esp]
push 0x4000
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x40d0]
push eax
call fcn.00419420
mov eax, dword [0x4ae1e4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x41b912
push ebx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41b912
lea eax, [ebp - 0x40ac]
mov dword [ebp - 0x40ac], 0x80
push eax
lea eax, [ebp - 0x40a8]
push eax
push 0
push dword [ebp - 0x40c0]
push dword [ebp - 0x40c4]
push dword [0x4ae1e4]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ba85
call esi
cmp eax, 0x2733
je 0x41b90c
cmp eax, 0x2746
je 0x41b90c
call fcn.0041b5f0
push eax
push str.NET_GetPacket:__s_n
call fcn.0040cbe0
add esp, 8
mov edi, dword [sym.imp.WSOCK32.dll_recvfrom]
mov eax, dword [0x4ae1ec]
cmp eax, 0xffffffff
je 0x41b988
push ebx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41b983
lea eax, [ebp - 0x40ac]
mov dword [ebp - 0x40ac], 0x80
push eax
lea eax, [ebp - 0x40a8]
push eax
push 0
push dword [ebp - 0x40c0]
push dword [ebp - 0x40c4]
push dword [0x4ae1ec]
call edi
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x41bbca
call esi
cmp eax, 0x2733
je 0x41b983
cmp eax, 0x2746
je 0x41b983
call fcn.0041b5f0
push eax
push str.NET_GetPacket:__s_n
call fcn.0040cbe0
add esp, 8
mov eax, dword [0x4ae1ec]
mov ecx, dword [0x4ae1f0]
cmp ecx, 0xffffffff
je 0x41bced
cmp ecx, eax
je 0x41bced
push ebx
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41bced
lea eax, [ebp - 0x40ac]
mov dword [ebp - 0x40ac], 0x80
push eax
lea eax, [ebp - 0x40a8]
push eax
push 0
push dword [ebp - 0x40c0]
push dword [ebp - 0x40c4]
push dword [0x4ae1f0]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41bcc6
lea eax, [ebp - 0x4028]
mov dword [ebp - 0x4028], 0
push eax
lea eax, [ebp - 0x40a8]
push eax
call fcn.0041d010
add esp, 8
mov dword [ebp - 0x40b4], 0
cmp esi, dword [ebp - 0x40c0]
jge 0x41bc9b
mov dword [ebp - 0x40b8], esi
mov eax, dword [0x5fa874]
fld dword [eax + 0x1c]
fstp dword [ebp - 0x40d4]
fld dword [ebp - 0x40d4]
fldz
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x41bc7e
fcomp qword [0x492a20]
fnstsw ax
test ah, 0x41
jp 0x41bc80
call fcn.00471c1b
mov ecx, dword [0x5fa874]
mov esi, eax
fld dword [ecx + 0x1c]
fmul qword [0x492a28]
call fcn.0046d0e0
cmp esi, eax
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jl 0x41b880
jmp 0x41bc80
xor eax, eax
mov dword [ebp - 0x40a0], eax
mov dword [ebp - 0x409c], eax
cmp dword [0x5fa83c], eax
je 0x41bb83
mov esi, dword [ebp - 0x40ac]
lea ecx, [ebp - 0x40a8]
mov edx, 0x5fa878
sub esi, 4
jb 0x41bac6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41bacb
add ecx, 4
add edx, 4
sub esi, 4
jae 0x41bab5
cmp esi, 0xfffffffc
je 0x41bb04
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41bb83
cmp esi, 0xfffffffd
je 0x41bb04
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41bb83
cmp esi, 0xfffffffe
je 0x41bb04
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41bb83
cmp esi, 0xffffffff
je 0x41bb04
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x41bb83
cmp edi, 0xa
jl 0x41bced
mov ecx, dword [ebp - 0x40c4]
cmp byte [ecx], 0
jne 0x41bced
cmp byte [ecx + 1], 0
jne 0x41bced
cmp byte [ecx + 2], 0
jne 0x41bced
cmp byte [ecx + 3], 1
jne 0x41bced
mov dword [ebp - 0x4028], 4
movzx eax, byte [ecx + 4]
mov byte [ebp - 0x4024], al
movzx eax, byte [ecx + 5]
mov byte [ebp - 0x4023], al
movzx eax, byte [ecx + 6]
mov byte [ebp - 0x4022], al
movzx eax, byte [ecx + 7]
mov byte [ebp - 0x4021], al
mov ax, word [ecx + 8]
mov word [ebp - 0x4014], ax
mov dword [ebp - 0x40b4], 0xa
jmp 0x41bbad
lea eax, [ebp - 0x4028]
mov dword [ebp - 0x4028], 0
push eax
lea eax, [ebp - 0x40a8]
push eax
call fcn.0041d010
add esp, 8
mov dword [ebp - 0x40b4], 0
cmp edi, dword [ebp - 0x40c0]
jge 0x41bc9b
mov dword [ebp - 0x40b8], edi
mov edi, dword [sym.imp.WSOCK32.dll_recvfrom]
jmp 0x41ba23
mov ax, word [ebp - 0x40a8]
mov dword [ebp - 0x4028], 0
cmp ax, 2
jne 0x41bc07
mov eax, dword [ebp - 0x40a4]
mov dword [ebp - 0x4024], eax
mov ax, word [ebp - 0x40a6]
mov dword [ebp - 0x4028], 4
mov word [ebp - 0x4014], ax
jmp 0x41bc61
cmp ax, 0x17
jne 0x41bc61
mov eax, dword [ebp - 0x40a0]
mov dword [ebp - 0x4024], eax
mov eax, dword [ebp - 0x409c]
mov dword [ebp - 0x4020], eax
mov eax, dword [ebp - 0x4098]
mov dword [ebp - 0x401c], eax
mov eax, dword [ebp - 0x4094]
mov dword [ebp - 0x4018], eax
mov ax, word [ebp - 0x40a6]
mov word [ebp - 0x4014], ax
mov eax, dword [ebp - 0x4090]
mov dword [ebp - 0x4028], 5
mov dword [ebp - 0x4010], eax
mov dword [ebp - 0x40b4], 0
cmp ecx, dword [ebp - 0x40c0]
jge 0x41bc9b
mov dword [ebp - 0x40b8], ecx
jmp 0x41ba23
fstp st(0)
lea eax, [ebp - 0x40d0]
push eax
lea eax, [ebp - 0x4028]
push eax
call fcn.0040cfb0
add esp, 8
jmp 0x41b873
lea eax, [ebp - 0x4028]
push eax
call fcn.0041b140
push eax
push str.Oversize_packet_from__s_n
call fcn.0040cbe0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41bced
cmp eax, 0x2746
je 0x41bced
call fcn.0041b5f0
push eax
push str.NET_GetPacket:__s_n
call fcn.0040cbe0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret